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

add the missing metrics exporter: exporter-metrics-otlp-http #1136

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

stevemao
Copy link

@stevemao stevemao commented Feb 3, 2024

Otherwise metrics won't work

@stevemao stevemao requested a review from a team as a code owner February 3, 2024 01:49
Copy link

linux-foundation-easycla bot commented Feb 3, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@stevemao
Copy link
Author

@rapphil please review this PR

@onhate
Copy link

onhate commented Feb 29, 2024

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'
Copy link
Contributor

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.

Copy link
Author

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?

Copy link
Contributor

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.

Copy link
Member

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can make the changes

@vinay2897
Copy link

This would be very helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants