Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[o11y] Provide OTel-compatible user span representation in trace #3180

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

fhanau
Copy link
Collaborator

@fhanau fhanau commented Nov 27, 2024

#3177 should land before this (listed as the first comment here). Also see the corresponding upstream PR.

@fhanau fhanau force-pushed the felix/111524-user-tracing-otel-v1 branch 2 times, most recently from 20b2330 to e5764c6 Compare November 27, 2024 17:39
src/workerd/api/trace.h Outdated Show resolved Hide resolved
@fhanau fhanau force-pushed the felix/111524-user-tracing-otel-v1 branch from e5764c6 to c3f12ae Compare December 4, 2024 00:55
@fhanau
Copy link
Collaborator Author

fhanau commented Dec 4, 2024

This should be ready for review now – I'm not 100% certain about the span representation but we can still change it while this is marked as experimental. Making trace spans available is covered in a follow-up PR (#3209), I fear that it will require some more review so not including it in this one.

@fhanau fhanau requested review from mikea and jasnell December 4, 2024 01:09
@fhanau fhanau marked this pull request as ready for review December 4, 2024 01:10
@fhanau fhanau requested review from a team as code owners December 4, 2024 01:10
kj::String spanTagStr(const Span::TagValue& tag);
Span::TagValue spanTagClone(const Span::TagValue& tag);

struct CompleteSpan {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if CompleteSpan is descriptive enough. Should this be UserSubmitSpan or something else? It's unfortunate that we'll need this on top of Span, but this needs to store more information than Span has.

@fhanau
Copy link
Collaborator Author

fhanau commented Dec 4, 2024

  • Update experimental types (types/definitions/experimental/index.d.ts)

@fhanau
Copy link
Collaborator Author

fhanau commented Dec 4, 2024

Hoping to get reviews on this soon – this will be useful for doing another demo on user tracing using the new interchange format.

@fhanau fhanau force-pushed the felix/111524-user-tracing-otel-v1 branch from c3f12ae to d2c39ba Compare December 12, 2024 16:58
Copy link

github-actions bot commented Dec 12, 2024

The generated output of @cloudflare/workers-types matches the snapshot in types/generated-snapshot 🎉

@fhanau fhanau force-pushed the felix/111524-user-tracing-otel-v1 branch from d2c39ba to 598986f Compare December 18, 2024 16:05
@fhanau fhanau force-pushed the felix/111524-user-tracing-otel-v1 branch from 598986f to 956a297 Compare December 18, 2024 16:51
@fhanau fhanau requested a review from a team as a code owner December 18, 2024 16:51
@fhanau fhanau merged commit 7d0e7cd into main Dec 18, 2024
15 checks passed
@fhanau fhanau deleted the felix/111524-user-tracing-otel-v1 branch December 18, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants