Open Cricle opened 2 weeks ago
ActivitySource
is mentioned in the title but not in the post. Can you elaborate what the benefits would be for that?
ActivitySource is mentioned in the title but not in the post. Can you elaborate what the benefits would be for that?
Oh!I forgot write that 😱
Hi @Cricle! Some source generator work has been done on EventSource, for example https://github.com/dotnet/runtime/pull/45699. Remaining work is tracked on https://github.com/dotnet/runtime/issues/56154. Our team does not have immediate plans to work on this - please do feel free to submit a PR if you plan on working on it as we welcome community contributions!
I think this will be a huge challenge for me.
But I will try to do it.
I am not familiar with the code structure of runtime, so I may not be able to complete it in 10.0.0.
But in reality, the form of ActivitySource
event generation is still unknown
EventSource
According to eventsource-getting-started
Eventone must call like
WriteEvent
orWriteEventCore
to write event.Sample for
ArrayPoolEventSource.cs
, must new theEventData
array, write value and callWriteEventCore
. But in reality, these codes are fixed, got value ptr->set value size->set is reserved.Any plan make the
EventSource
code generate? Like that.ActivitySource
According to distributed-tracing-instrumentation-walkthroughs
Everyone want to add
distributed-tracing-instrumentation-walkthroughs
, must to do that create an activitysource(->add tags)->add eventsBut the events possible like eventsource event define, so sometimes you have to write two similar codes.
For me
I have a project that attempted to generate these from the source, but there were many unexpected issues with the details or implementation. That's why I want to ask if there are any plans to implement these in the runtime.
For my project, I make the
Logger
<->ActivitySource
<->EventSource
interoperableWill generate codes
I try to make use OTEL easily, but perhaps this is not a perfect solution.