-
Notifications
You must be signed in to change notification settings - Fork 160
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
StableOtlpHTTPExporter implementation #476
Merged
nachoBonafonte
merged 1 commit into
open-telemetry:main
from
jhoongo:stable-otlp-http-eporter
Oct 26, 2023
Merged
StableOtlpHTTPExporter implementation #476
nachoBonafonte
merged 1 commit into
open-telemetry:main
from
jhoongo:stable-otlp-http-eporter
Oct 26, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
jhoongo
force-pushed
the
stable-otlp-http-eporter
branch
from
October 16, 2023 16:47
e408154
to
2694baa
Compare
jhoongo
requested review from
nachoBonafonte,
bryce-b and
vvydier
as code owners
October 16, 2023 17:02
bryce-b
reviewed
Oct 18, 2023
@@ -97,14 +97,15 @@ public enum MetricsAdapter { | |||
protoDataPoint.value = .asInt(Int64(gaugeData.value)) | |||
protoMetric.gauge.dataPoints.append(protoDataPoint) | |||
case .LongSum: | |||
guard let gaugeData = $0 as? LongPointData else { | |||
guard let gaugeData = $0 as? LongPointData else { |
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.
white-space is off: should be 2 spaces indentation.
Codecov ReportAttention:
... and 1 file with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
jhoongo
force-pushed
the
stable-otlp-http-eporter
branch
3 times, most recently
from
October 25, 2023 18:36
120225e
to
163643d
Compare
jhoongo
force-pushed
the
stable-otlp-http-eporter
branch
from
October 25, 2023 20:10
163643d
to
3919cb0
Compare
bryce-b
approved these changes
Oct 25, 2023
nachoBonafonte
approved these changes
Oct 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue Details
Current state of
OpenTelemetry-Swift
lacks an ability to HTTP Exporter forStableMetric
and few ability to setaggregationTemporality
for metrics andmonotonic
type.This PR implements
StableOtlpHTTPMetricExporter
to implement the missing capabilities.Implementation Details
StableOtlpHTTPExporterBase
andStableOtlpHTTPMetricExporter
StableMetricData
to haveisMonotonic
andaggregationTemporality
MetricsAdapter
to readisMonotonic
andaggregationTemporality
from it, and prepare the proper request payload for the metrics in protobufOtlpConfiguration
for each request