Skip to content

add more helpers#4

Merged
tobert merged 4 commits intomainfrom
more-helpers
Sep 22, 2021
Merged

add more helpers#4
tobert merged 4 commits intomainfrom
more-helpers

Conversation

@tobert
Copy link
Copy Markdown
Contributor

@tobert tobert commented Sep 22, 2021

adds:

  • ContextWithCmdlineTraceparent
  • ContextWithCmdlineOrEnvTraceparent
  • ContextWithTraceparentString
  • TraceparentStringFromContext

All of which I've wanted a few times recently and mainly need ContextWithCmdlineOrEnvTraceparent for some work happening now.

Amy Tobey added 3 commits September 22, 2021 09:30
Not perfect test coverage but enough to get *some* confidence it's
mostly right. More to come.

Signed-off-by: Amy Tobey <[email protected]>
Copy link
Copy Markdown
Contributor

@edw-eqix edw-eqix left a comment

Choose a reason for hiding this comment

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

Don't think my comment about validation needs to be in this PR but it would be good to clarify the wording about keys in the simple_carrier_test

Comment thread otelhelpers/context_traceparent.go
Comment thread otelhelpers/simple_carrier_test.go Outdated
that's what I get for copying from otel-cli

Signed-off-by: Amy Tobey <[email protected]>
@tobert tobert merged commit 8e8c49a into main Sep 22, 2021
@tobert tobert deleted the more-helpers branch September 22, 2021 20:10
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