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

Bump OTEL version and update exporters to use new API #2196

Merged
merged 7 commits into from
Apr 29, 2020

Conversation

pavolloffay
Copy link
Member

@pavolloffay pavolloffay commented Apr 24, 2020

Currently blocked by open-telemetry/opentelemetry-collector#872 as we need a new translator from pdata.Traces to Jaeger data model.

@pavolloffay pavolloffay marked this pull request as ready for review April 28, 2020 12:17
@pavolloffay pavolloffay requested a review from a team as a code owner April 28, 2020 12:17
@pavolloffay pavolloffay requested a review from jpkrohling April 28, 2020 12:17
@pavolloffay pavolloffay force-pushed the otel-update-exporters branch from 764d7b6 to 080e5af Compare April 28, 2020 12:17
@pavolloffay
Copy link
Member Author

@objectiser this is ready for review

@pavolloffay pavolloffay force-pushed the otel-update-exporters branch from c6e76e6 to 716a2fc Compare April 28, 2020 13:56
Copy link
Contributor

@objectiser objectiser left a comment

Choose a reason for hiding this comment

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

Only one minor change.

cmd/opentelemetry-collector/app/exporter/kafka/factory.go Outdated Show resolved Hide resolved
@pavolloffay
Copy link
Member Author

go service is failing in CROSSDOCK_OTEL I am not sure why. It is passing in normal crossdock.

Signed-off-by: Pavol Loffay <[email protected]>
func (Factory) CreateTraceExporter(log *zap.Logger, cfg configmodels.Exporter) (component.TraceExporterOld, error) {
// This function implements OTEL component.ExporterFactory interface.
func (f Factory) CreateTraceExporter(
_ context.Context,
Copy link
Member

Choose a reason for hiding this comment

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

why do they pass context? Is it used as a replacement for Close()?

Copy link
Member Author

Choose a reason for hiding this comment

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

Close has its own context. This context seems to be associated with application start event.

Signed-off-by: Pavol Loffay <[email protected]>
@pavolloffay
Copy link
Member Author

I thought a processor had to be provided otherwise it would be an invalid OTC config?

This was the case before now It seems to work, I am trying to investigate xdock failure. The processors will be handled as part of #2152

Signed-off-by: Pavol Loffay <[email protected]>
Signed-off-by: Pavol Loffay <[email protected]>
@codecov
Copy link

codecov bot commented Apr 29, 2020

Codecov Report

Merging #2196 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2196      +/-   ##
==========================================
+ Coverage   96.14%   96.16%   +0.01%     
==========================================
  Files         219      219              
  Lines       10632    10632              
==========================================
+ Hits        10222    10224       +2     
+ Misses        353      352       -1     
+ Partials       57       56       -1     
Impacted Files Coverage Δ
plugin/storage/badger/spanstore/reader.go 96.79% <0.00%> (ø)
...lugin/sampling/strategystore/adaptive/processor.go 100.00% <0.00%> (+0.79%) ⬆️

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 ee30bd7...4f703af. Read the comment docs.

@pavolloffay
Copy link
Member Author

The processors were causing issues in the CI. Without the processors CI seems to pass fine. I will keep them removed and install back in #2152

@pavolloffay pavolloffay merged commit f834975 into jaegertracing:master Apr 29, 2020
@pavolloffay pavolloffay changed the title Update OTEL exporters to use new API Bump OTEL version and update exporters to use new API Apr 29, 2020
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