Skip to content

Commit

Permalink
refactor Layer set* & tracing apis (#1506)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Oct 10, 2023
1 parent 8c81e58 commit a4fbb70
Show file tree
Hide file tree
Showing 24 changed files with 675 additions and 385 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-mails-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": patch
---

add onEnd finalizer to Layer span apis
5 changes: 5 additions & 0 deletions .changeset/mean-carpets-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": minor
---

move Effect.set\* Layer apis to the Layer module
5 changes: 5 additions & 0 deletions .changeset/tricky-pens-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": patch
---

add Layer.withParentSpan api
5 changes: 5 additions & 0 deletions .changeset/violet-fishes-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": minor
---

refactor Effect span apis
6 changes: 4 additions & 2 deletions docs/modules/Channel.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -1641,10 +1641,11 @@ export declare const withSpan: {
(
name: string,
options?: {
readonly attributes?: Record<string, Tracer.AttributeValue>
readonly attributes?: Record<string, unknown>
readonly links?: ReadonlyArray<Tracer.SpanLink>
readonly parent?: Tracer.ParentSpan
readonly root?: boolean
readonly sampled?: boolean
readonly context?: Context.Context<never>
}
): <Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>(
Expand All @@ -1654,10 +1655,11 @@ export declare const withSpan: {
self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>,
name: string,
options?: {
readonly attributes?: Record<string, Tracer.AttributeValue>
readonly attributes?: Record<string, unknown>
readonly links?: ReadonlyArray<Tracer.SpanLink>
readonly parent?: Tracer.ParentSpan
readonly root?: boolean
readonly sampled?: boolean
readonly context?: Context.Context<never>
}
): Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>
Expand Down
Loading

0 comments on commit a4fbb70

Please sign in to comment.