-
Notifications
You must be signed in to change notification settings - Fork 38
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
Metrics exporter does not support Cloud Run #248
Comments
Hi @joao-melo-ingka, Root Cause:The reason for this is that Possible Workaround:As a workaround for this, in your SdkMeterProvider.builder()
.setResource(Resource.create(Attributes.of(
AttributeKey.stringKey("cloud.availability_zone"), "global",
AttributeKey.stringKey("service.namespace"), "test-service",
AttributeKey.stringKey("service.name"), "service-name",
AttributeKey.stringKey("service.instance.id"), "some-id"
)))
.registerMetricReader(
PeriodicMetricReader.builder(metricExporter)
.setInterval(java.time.Duration.ofSeconds(30))
.build())
.build(); The provided list of Let me know if this approach works for you. |
Understood, thanks. Once I do that, I get #247 |
In team discussion, we wondered why this wasn't caught by existing integration tests. It turns out that our integration tests only cover the Trace APIs (and we won't prioritize Metric API coverage any time soon). So for this issue, we should
|
For the other language exporters - Python & Go seem compliant. JavaScript needs to fix this same issue. A bug has been opened against JS repo to track this - GoogleCloudPlatform/opentelemetry-operations-js#553 |
If we attempt to use this with cloud run, it doesn't work:
The text was updated successfully, but these errors were encountered: