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

Reliable documentation on generated telemetry

Open medikoo opened this issue 2 years ago • 24 comments

e.g. I'm looking at @opentelemetry/instrumentation-http I see instructions on how it can be setup, but I don't see any documentation on the produced outcome.

What are the telemetry properties generated? Where can I find reliable documentation on that? Ideally if there's a helpful note on that in main package readme

medikoo avatar Mar 16 '22 16:03 medikoo

It would probably be a good idea for each instrumentation to provide a summary of the "shape" of the produced telemetry. For now you can look at the semantic conventions in the specifications here for example. Instrumentations are supposed to follow the guidelines there and we do our best to follow that but if our instrumentation is out of date or provides any non-standard attributes they obviously won't show up there.

dyladan avatar Mar 17 '22 13:03 dyladan

hello, I would like to add this documentation in. Seems like the best way to go would be to add a new section to the README and I am thinking of pulling these values based on whats in the src code unless there is a different reference point?

sgracias1 avatar Jun 01 '22 20:06 sgracias1

@medikoo @dyladan I want to work on this issue. Can you assign me? Do you want small application outcome of observability after setup created using js? I need your help to understand this issue.

siddhikhapare avatar Jun 22 '22 06:06 siddhikhapare

I think documenting them in the package README with a new section should be fine.

legendecas avatar Jun 22 '22 16:06 legendecas

@sgracias1 and @siddhikhapare you are both welcome to work on this but I would suggest you coordinate so you don't duplicate work

dyladan avatar Jun 22 '22 17:06 dyladan

Sure. Thank you.

siddhikhapare avatar Jun 23 '22 16:06 siddhikhapare

I will work on tracing part.

siddhikhapare avatar Jun 23 '22 21:06 siddhikhapare

@dyladan @legendecas @medikoo I have done my task. can you please review it? Let me know if any changes required in same file.

siddhikhapare avatar Jul 09 '22 20:07 siddhikhapare

@siddhikhapare where I can see it?

medikoo avatar Jul 11 '22 08:07 medikoo

@siddhikhapare the only PR I see from you is https://github.com/open-telemetry/opentelemetry-js/pull/3082 which doesn't seem to cover what we talked about here but adds a couple examples.

dyladan avatar Jul 11 '22 13:07 dyladan

@medikoo I have created PR here : https://github.com/open-telemetry/opentelemetry-js/pull/3082

siddhikhapare avatar Jul 11 '22 16:07 siddhikhapare

@dyladan I apologize for inconvenience. Can you guide me to what kind of changes should I do?

siddhikhapare avatar Jul 11 '22 16:07 siddhikhapare

May I have to mention concept of open telemetry from document such as how does tracing and logs work , architecture of collector, etc.

siddhikhapare avatar Jul 11 '22 16:07 siddhikhapare

Do I have to explain tag section of zipkin UI?

siddhikhapare avatar Jul 11 '22 18:07 siddhikhapare

#3082 seems to be adding some examples, but no formal documentation. The issue is asking for documentation on which telemetry should be generated by each instrumentation.

dyladan avatar Jul 11 '22 20:07 dyladan

@dyladan I will do it.

siddhikhapare avatar Jul 12 '22 04:07 siddhikhapare

#3082 seems to be adding some examples, but no formal documentation. The issue is asking for documentation on which telemetry should be generated by each instrumentation.

@siddhikhapare as put above. My point is that the main documentation should document the outcome of instrumentation. Currently, it's totally not clear what exactly metrics/telemetry will be generated.

medikoo avatar Jul 12 '22 08:07 medikoo

@medikoo All right. I have understood your point. Thank you.

siddhikhapare avatar Jul 14 '22 04:07 siddhikhapare

@dyladan @medikoo As per your suggestions I have done changes in files. Could you please go through them? Thank you. https://github.com/open-telemetry/opentelemetry-js/pull/3109

siddhikhapare avatar Jul 24 '22 07:07 siddhikhapare

@siddhikhapare I still do not see any changes being proposed to this file: https://github.com/open-telemetry/opentelemetry-js/blob/038bbdb67ad16d6fd8a26a3a81e42726ceccf04e/experimental/packages/opentelemetry-instrumentation-http/README.md am I missing something?

medikoo avatar Jul 25 '22 15:07 medikoo

@medikoo @dyladan Hi, I thought I have to make separate folder and add all changes there regarding how to configure manual and automatic instrumentation to generate telemetry. I apologize for my misunderstanding about your suggestions but I have tried to add one http options here. https://github.com/open-telemetry/opentelemetry-js/pull/3109 Can you please tell me do I need to add recent changes in your mentioned file? I will add this changes in your mentioned file if they are correct. I hope that I accomplished what we had discussed earlier. If not , Let me know if you wish to make any changes by me.

siddhikhapare avatar Jul 25 '22 17:07 siddhikhapare

The acceptance criteria for this issue is that for instrumentation each package, the README in that package directory should state which semantic conventions from the specification are followed. This is a documentation issue, not asking for an example or any code.

dyladan avatar Jul 25 '22 18:07 dyladan

@dyladan @medikoo I mentioned points what you both had instructed me. Would you please go through them? Let me know if you wish to make any changes by me.

siddhikhapare avatar Jul 30 '22 18:07 siddhikhapare