Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OtlpGrpcMetricExporter::GetAggregationTemporality throws when the exporter is constructed with a shared grpc client #3242

Closed
dbarker opened this issue Jan 13, 2025 · 0 comments · Fixed by #3243
Labels
bug Something isn't working triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@dbarker
Copy link
Contributor

dbarker commented Jan 13, 2025

Describe your environment
main branch at 57114c5

Steps to reproduce

  1. Create a OtlpGrpcMetricExporter with a shared grpc client
  2. Call GetAggregationTemporality

What is the expected behavior?
Returns the aggregation temporality for the exporter

What is the actual behavior?
A std::bad_function_call exception is thrown

Additional context

The aggregation_temporality_selector_ function object is not set by the constructor that accepts a shared grpc client (line 50).

Example stack trace:
bad_function_exception_grpc_exporter

@dbarker dbarker added the bug Something isn't working label Jan 13, 2025
@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jan 13, 2025
@marcalff marcalff added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants