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 public functions to export pdata to ExportXServicesRequest Protobuf bytes #1741

Merged
merged 11 commits into from
Sep 17, 2020
Merged

add public functions to export pdata to ExportXServicesRequest Protobuf bytes #1741

merged 11 commits into from
Sep 17, 2020

Conversation

chenzhihao
Copy link
Contributor

@chenzhihao chenzhihao commented Sep 3, 2020

Description:
Adding a feature - Add the public functions to export internal pipeline data to otlp ExportLogsServiceRequest, ExportMetricsServiceRequest, ExportTraceServiceRequest.
The intention for this feature is to add a way to export the internal data to protbuf bytes without exposing the internal protobuf generated data structure. Thus the user can send this otlp data over HTTP.

Link to tracking Issue:
#1719

Testing:
Unit test added.

Documentation:
Comments added for the new feature.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 3, 2020

CLA Check
The committers are authorized under a signed CLA.

@codecov
Copy link

codecov bot commented Sep 4, 2020

Codecov Report

Merging #1741 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1741      +/-   ##
==========================================
- Coverage   91.90%   91.89%   -0.01%     
==========================================
  Files         262      262              
  Lines       18744    18756      +12     
==========================================
+ Hits        17226    17236      +10     
- Misses       1085     1086       +1     
- Partials      433      434       +1     
Impacted Files Coverage Δ
consumer/pdata/log.go 100.00% <100.00%> (ø)
consumer/pdata/metric.go 98.13% <100.00%> (+0.04%) ⬆️
consumer/pdata/trace.go 100.00% <100.00%> (ø)
translator/internaldata/resource_to_oc.go 87.87% <0.00%> (-2.03%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 471c4a6...5b8376a. Read the comment docs.

Copy link
Member

@bogdandrutu bogdandrutu left a comment

Choose a reason for hiding this comment

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

I think we can support this without making any trade-offs for future work

consumer/pdata/metric.go Outdated Show resolved Hide resolved
@bogdandrutu
Copy link
Member

@tigrannajaryan what is your opinion on this? I think I am ok with this.

@tigrannajaryan
Copy link
Member

@tigrannajaryan what is your opinion on this? I think I am ok with this.

I think this is a good approach. The wire format is part of our contract, exposing it does not place any unwanted restriction on us. And the ToOtlpProtoBytes functions are trivial so it is not a maintenance burden either.

Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

LGTM

@tigrannajaryan tigrannajaryan merged commit e5d4463 into open-telemetry:master Sep 17, 2020
@chenzhihao chenzhihao deleted the export_Otlp_proto_bytes branch September 17, 2020 23:26
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
…jaeger (open-telemetry#1741)

* Bump google.golang.org/api in /exporters/trace/jaeger

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.41.0 to 0.43.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md)
- [Commits](googleapis/google-api-go-client@v0.41.0...v0.43.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Auto-fix go.sum changes in dependent modules

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
…1741)

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](stretchr/testify@v1.7.5...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
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.

3 participants