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

Adds Tracing.inSpan, a way to give zio-telemetry an externally created span #441

Merged
merged 2 commits into from
Oct 8, 2021

Conversation

cursedquail
Copy link
Contributor

This builds on the work in #320, adding tests & some documentation

span

This builds on the work in zio#320, adding tests & some documentation
@CLAassistant
Copy link

CLAassistant commented Oct 7, 2021

CLA assistant check
All committers have signed the CLA.

@@ -32,6 +32,23 @@ object TracingSyntax {
toErrorStatus: PartialFunction[E, StatusCode] = Map.empty
): ZIO[R with Tracing, E, A] = Tracing.span(spanName, spanKind, toErrorStatus)(effect)

/**
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I put the bulk of the documentation here, because this is the interface most people will use

@runtologist
Copy link
Member

Welcome @NLincoln! This looks good. Once the build errors have been fixed we're good to go.

@cursedquail
Copy link
Contributor Author

cursedquail commented Oct 7, 2021

@runtologist ah, I forgot to run linting locally. Should be gtg now? Also npm is operational again so the docs bit should be good

Copy link
Member

@runtologist runtologist left a comment

Choose a reason for hiding this comment

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

LGTM

@runtologist runtologist merged commit 70ab9fe into zio:master Oct 8, 2021
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.

3 participants