Skip to content

[Metrics] Add OTLP http metric exporter - #1487

Merged
lalitb merged 7 commits into
open-telemetry:mainfrom
owent:otlp_metrics_exporter
Jul 19, 2022
Merged

lalitb merged 7 commits into
open-telemetry:mainfrom
owent:otlp_metrics_exporter

Conversation

@owent

@owent owent commented Jul 11, 2022

Copy link
Copy Markdown
Member

Fixes #1371

Changes

  • Add OTLP HTTP Metrics exporter
    • CMake target
    • Bazel target
  • Unit test
  • Add Shutdown test for all OTLP HTTP exporters
  • Add ForceFlush for OtlpHttpClient
  • Add Gauge support for OtlpMetricUtils::PopulateRequest

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@owent
owent requested a review from a team July 11, 2022 09:24
@codecov

codecov Bot commented Jul 11, 2022

Copy link
Copy Markdown

Codecov Report

Merging #1487 (4fe3069) into main (4062237) will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1487      +/-   ##
==========================================
- Coverage   84.72%   84.66%   -0.06%     
==========================================
  Files         156      156              
  Lines        4784     4784              
==========================================
- Hits         4053     4050       -3     
- Misses        731      734       +3     
Impacted Files Coverage Δ
ext/src/http/client/curl/http_client_curl.cc 79.93% <0.00%> (-1.13%) ⬇️

@owent
owent force-pushed the otlp_metrics_exporter branch 2 times, most recently from 26a6826 to 456bd6c Compare July 13, 2022 04:59
@owent owent changed the title [WIP] Add OTLP http metric exporter [Metrics] Add OTLP http metric exporter Jul 13, 2022
@owent owent mentioned this pull request Jul 13, 2022
3 tasks
@owent

owent commented Jul 14, 2022

Copy link
Copy Markdown
Member Author

@lalitb Could you please review this PR?
This PR also extend the utils of OTLP gRPC metrics exporter.
Hope this can be in next release together with OTLP gRPC metrics exporter.

Comment thread cmake/opentelemetry-cpp-config.cmake.in Outdated

@lalitb lalitb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Nicely done. There are a few improvements I can see to be done for the OTLP GRPC Metrics exporter. I will raise a PR for that.

Comment thread cmake/opentelemetry-cpp-config.cmake.in Outdated
Comment thread exporters/otlp/include/opentelemetry/exporters/otlp/otlp_metric_utils.h Outdated
Comment thread cmake/opentelemetry-cpp-config.cmake.in Outdated
@lalitb

lalitb commented Jul 15, 2022

Copy link
Copy Markdown
Member

@owent - Have some conflicts to resolve here :)

@owent
owent force-pushed the otlp_metrics_exporter branch from 0acfe4d to 7ef9684 Compare July 16, 2022 05:32
@owent

owent commented Jul 16, 2022

Copy link
Copy Markdown
Member Author

@owent - Have some conflicts to resolve here :)

Resloved

Comment thread exporters/otlp/src/otlp_http_metric_exporter.cc Outdated
@lalitb

lalitb commented Jul 19, 2022

Copy link
Copy Markdown
Member

@owent - Can you please rebase it, so can be merged.

owent added 7 commits July 19, 2022 14:37
Signed-off-by: owentou <owentou@tencent.com>
Signed-off-by: owentou <owentou@tencent.com>
Signed-off-by: owentou <owentou@tencent.com>
…cUtils::PopulateRequest`

Signed-off-by: owentou <owentou@tencent.com>
Signed-off-by: owentou <owentou@tencent.com>
Signed-off-by: owentou <owentou@tencent.com>
Signed-off-by: owentou <owentou@tencent.com>
@owent
owent force-pushed the otlp_metrics_exporter branch from 7ef9684 to 4fe3069 Compare July 19, 2022 06:38
@owent

owent commented Jul 19, 2022

Copy link
Copy Markdown
Member Author

@owent - Can you please rebase it, so can be merged.

Done

@lalitb
lalitb merged commit 24d5100 into open-telemetry:main Jul 19, 2022
@owent
owent deleted the otlp_metrics_exporter branch July 20, 2022 03:09
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.

OTLP HTTP exporter for Metrics

4 participants