Repository navigation
Conversation
|
Yeah, I did some work on the OTel factor stuff; however, I won't be able to spare the cycles to help out with this 😞. Maybe @calebschoepp can offer some insight? He and I worked on wasi-otel together. |
calebschoepp
left a comment
There was a problem hiding this comment.
Regarding testing I don't recall what we have in repo for tests around wasi-otel. If there is nothing then just ship it I guess.
One thing you could do is point an agent at the integration tests in https://github.com/bytecodealliance/opentelemetry-wasi and pin it to this version of Spin to confirm it still works.
|
|
||
| // OTel is mad about our Arc. Dammit OTel | ||
| #[derive(Debug)] | ||
| struct DammitOTel(Arc<BatchLogProcessor<Tokio>>); |
There was a problem hiding this comment.
Nit: Not quite enough condemnation for my taste
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
e20426b to
0c0d4c6
Compare
What is "agent" in this context - do you mean in the sense of "get a LLM to do it", or in the sense of "there is an OTel thing that handles logging mechanics and you need to point that at the integration tests" |
Agent in the sense of an LLM. It of course could be done by hand. My main point is that the most robust testing for this lives in the integration tests of that other repo. |
It looks like we should not be calling the LogProcessor directly, but instead interposing a SdkLogger. This is needed because OTel packs an absolutely massive tanty if a log doesn't have an observed timestamp, and SdkLogger adds one if it's missing. (You are correct. This is indeed suboptimal.)
Draft because:
cc @asteurer who I think is also familiar with the OTel factor, is that right Andrew?