GreptimeTeam / greptimeai

greptime instrument sdk for popular LLM (LangChain, OpenAI, etc.)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Including instrumentationScope information in span data

sunng87 opened this issue · comments

OpenTelemetry allows us to set instrumentation metadata in span so that the receiver can have more context when store span data.

https://opentelemetry-python.readthedocs.io/en/latest/sdk/trace.html#opentelemetry.sdk.trace.ReadableSpan

In clickhouse, the ScopeName is greptime_llm_langchain_instrument.callback so far

OK. It's possible to set name and version here. I think this .callback is auto generated and we can customized and remove it.

Yes but at opentelemetry-sdk level it dones't seem to be able to access proto (which is a concept of exporter). Opentelemetry-sdk should provides access to these concepts too and we can check how to assign value to these fields. See the API doc link on top of the thread