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
add the missing metrics exporter: exporter-metrics-otlp-http #1136
base: main
Are you sure you want to change the base?
Conversation
Otherwise metrics won't work
@rapphil please review this PR |
I need this too |
@@ -22,7 +22,8 @@ import { | |||
import { getEnv } from '@opentelemetry/core'; | |||
import { AwsLambdaInstrumentationConfig } from '@opentelemetry/instrumentation-aws-lambda'; | |||
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-proto'; | |||
import { MeterProvider, MeterProviderOptions } from '@opentelemetry/sdk-metrics'; | |||
import { MeterProvider, MeterProviderOptions, PeriodicExportingMetricReader } from '@opentelemetry/sdk-metrics'; | |||
import { OTLPMetricExporter } from '@opentelemetry/exporter-metrics-otlp-grpc' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be exporter from exporter-metrics-otlp-proto
. That's what what is in package.json, and the tracer is using HTTP proto as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the differences between the 2 packages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both use protobuf as the data format, but exporter-*-otlp-proto
uses HTTP as the protocol.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stevemao Do you have any objection to this suggestion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can make the changes
This would be very helpful |
Otherwise metrics won't work