opentelemetry-python icon indicating copy to clipboard operation
opentelemetry-python copied to clipboard

Please add examples of basic usage to the README

Open yurishkuro opened this issue 4 years ago • 7 comments
trafficstars

Similar to https://github.com/opentracing/opentracing-python#inbound-request

yurishkuro avatar Jun 22 '21 23:06 yurishkuro

@yurishkuro Are you referring to basic usage of OpenTracing or OpenTelemetry in general?

lzchen avatar Jun 28 '21 18:06 lzchen

OpenTelemetry. I looked through readthedocs, and did not find a consistent cookbook of doing the most common instrumentation steps.

yurishkuro avatar Jun 28 '21 18:06 yurishkuro

The docs for instrumentation libraries exists here. Is there something missing that you would like to see?

lzchen avatar Jun 28 '21 19:06 lzchen

That's not what I am after, I am asking for the docs on how to use the API to instrument something (something that is not in the list in your link).

yurishkuro avatar Jun 28 '21 19:06 yurishkuro

@yurishkuro Just confirming you're looking for documentation that would help instrumentation library authors write their instrumentation libraries for common use-cases?

codeboten avatar Jun 28 '21 22:06 codeboten

Yes, as well as regular users who want to instrument their code directly. I had people reaching out asking about how to do that and I could not find documentation to point them to.

Again, this is the OpenTracing version of similar documentation: https://github.com/opentracing/opentracing-python#usage

yurishkuro avatar Jun 28 '21 23:06 yurishkuro

👍 It's hard to follow

Some stuff exists for manual instrumentation on opentelemetry.io,

There are some sporadic examples in readthedocs like https://opentelemetry-python.readthedocs.io/en/latest/api/propagate.html on how to extract/inject.

MadLittleMods avatar Aug 01 '22 18:08 MadLittleMods