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

Move from Open Tracing to Open Telemetry #7

Closed
6 tasks
graemerocher opened this issue Mar 17, 2021 · 22 comments
Closed
6 tasks

Move from Open Tracing to Open Telemetry #7

graemerocher opened this issue Mar 17, 2021 · 22 comments
Assignees
Labels
status: pr submitted A pull request has been submitted for the issue type: enhancement New feature or request

Comments

@graemerocher
Copy link
Contributor

graemerocher commented Mar 17, 2021

Tracing module is now an independent project and we need to undertake the refactoring work to move to Open Telemetry. Tasks:

@marcosflobo
Copy link

A nice to have would be, either:

  • Compatibility with the code already implemented in Micronaut projects with OpenTracing or
  • Migration path/process from OpenTracing to OpenTelemetry

:)

@binoysankar
Copy link

Will there be an OpenTracing module for DataDog as the current way (attaching the javaagent) to jvm doesn't work for native-image or is there any modules I can refer to currently.

@marcosflobo
Copy link

@graemerocher
Copy link
Contributor Author

No

@donbeave
Copy link
Contributor

donbeave commented Jun 9, 2021

@graemerocher do you need any help here, I'm currently working on micronaut-opentelemetry module (https://github.com/expatiat/micronaut-opentelemetry). This is a very dirty version, which is just my draft code from the local machine, but most parts are based on the original Micronaut tracing module. If you need any help here, I'm happy to help.

@graemerocher
Copy link
Contributor Author

Contributions welcome. I think @pgressa was going to look at this soon

@luolong
Copy link

luolong commented Oct 2, 2021

I would like to resurrect this issue.

Any hope for getting OpenTelemetry support into Micronaut?

With OpenTelemetry 1.0 release, OpenTracing support can officially be considered to be superceeded by OpenTelemetry project.

@graemerocher
Copy link
Contributor Author

Now that it has reached 1.0 perhaps it is time to move. The open tracing being a supposed standard and then being abandoned fiasco really tarnished my view of any software starting with the word Open

@luolong
Copy link

luolong commented Oct 2, 2021

I would argue it was not so much abandoned as evolved and superseded.

I would say, the move to unify and two open projects in same space into a single standardization effort is commendable and carries more of a promise than potential of having two competing standards vying for market- and mindshare.

@luolong
Copy link

luolong commented Oct 26, 2021

I'm currently working on micronaut-opentelemetry module (https://github.com/expatiat/micronaut-opentelemetry). This is a very dirty version, which is just my draft code from the local machine, but most parts are based on the original Micronaut tracing module. If you need any help here, I'm happy to help.

@donbeave Do you need any help with that? I see the development of your variant has not been updated in a while.

@donbeave
Copy link
Contributor

@luolong Hey, I will be happy to have some help. Do you use Telegram or any other IM? You can add me @donbeave.

@luolong
Copy link

luolong commented Jan 10, 2022

Looking at how Jaeger is deprecating its client libraries in favor of OpenTelemetry, this issue becomes even more pressing.

@ghost ghost assigned burtbeckwith Jan 10, 2022
@graemerocher
Copy link
Contributor Author

part of this issue has been addressed and the code moved to https://github.com/micronaut-projects/micronaut-tracing

It will be split out initially in 3.3.x then an independent OpenTelemetry module can evolve out of it

@graemerocher graemerocher transferred this issue from micronaut-projects/micronaut-core Jan 12, 2022
@graemerocher graemerocher added the type: enhancement New feature or request label Jan 12, 2022
@graemerocher
Copy link
Contributor Author

@burtbeckwith prioritise this next in terms of engineering tasks.

I think it is probably makes sense to have a new major version and remove the Open Tracing support all together

@gijsleussink
Copy link

How can we help moving this forward? 💪

@graemerocher graemerocher changed the title Move from Open Tracing to Open Telemetry and split Tracing module out of core Move from Open Tracing to Open Telemetry Mar 31, 2022
@graemerocher graemerocher assigned n0tl3ss and unassigned burtbeckwith Mar 31, 2022
@donbeave
Copy link
Contributor

donbeave commented Apr 7, 2022

I think it will be nice to add support for official OpenTelemetry java annotations: https://opentelemetry.io/docs/instrumentation/java/automatic/annotations/

I can come up with a PR, which will add support for @WithSpan and @SpanAttribute annotations.

Also, I think it's better to use official opentelemetry java instrumentation libraries for instrumentation: https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation

I can help with this work as well.

@trask
Copy link

trask commented Apr 7, 2022

Also, I think it's better to use official opentelemetry java instrumentation libraries for instrumentation: https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation

here's a list of instrumentation which can be used (so far) without the javaagent:
https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/standalone-library-instrumentation.md

@graemerocher
Copy link
Contributor Author

@donbeave there is a WIP PR at #65 perhaps you can provide @n0tl3ss with feedback

@graemerocher graemerocher added the status: pr submitted A pull request has been submitted for the issue label May 23, 2022
@ZawadaZSE
Copy link

Hey 👋

Do you have some estimates when will this be released?

@graemerocher
Copy link
Contributor Author

In a Micronaut release in 3.6.0 time frame (aprox 5 weeks from now), we will probably release the module sooner though, in the meantime you can try the snapshots #65 (comment)

@driverpt
Copy link

driverpt commented Jun 9, 2022

1 Question folks, does this integrate with Logback's MDC ?

@donbeave
Copy link
Contributor

donbeave commented Jun 9, 2022

1 Question folks, does this integrate with Logback's MDC ?

Not automatically by Micronaut Tracing module yet, you can do it by adding the OTEL appender by following this instruction: https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/logback/logback-mdc-1.0/library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: pr submitted A pull request has been submitted for the issue type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests