Skip to content

Commit

Permalink
feat: allow log annotations to be any object (#1500)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim <[email protected]>
  • Loading branch information
sukovanej and tim-smart committed Oct 9, 2023
1 parent 6a928e4 commit 8c81e58
Show file tree
Hide file tree
Showing 28 changed files with 309 additions and 180 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-mayflies-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": minor
---

Allow log annotations to be any object.
5 changes: 5 additions & 0 deletions .changeset/flat-hounds-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": patch
---

allow tracing attributes to be unknown
5 changes: 5 additions & 0 deletions .changeset/selfish-wolves-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": minor
---

add sampled flag to spans
5 changes: 5 additions & 0 deletions .changeset/shiny-jokes-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": patch
---

add Tracer.externalSpan constructor
2 changes: 1 addition & 1 deletion docs/modules/Effect.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -3336,7 +3336,7 @@ Retrieves the log annotations associated with the current scope.
**Signature**
```ts
export declare const logAnnotations: Effect<never, never, HashMap.HashMap<string, Logger.AnnotationValue>>
export declare const logAnnotations: Effect<never, never, HashMap.HashMap<string, unknown>>
```
Added in v2.0.0
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/FiberRef.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Added in v2.0.0
**Signature**
```ts
export declare const currentLogAnnotations: FiberRef<HashMap.HashMap<string, Logger.AnnotationValue>>
export declare const currentLogAnnotations: FiberRef<HashMap.HashMap<string, unknown>>
```
Added in v2.0.0
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Logger.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ Added in v2.0.0
**Signature**
```ts
export type AnnotationValue = string | number | boolean
export type AnnotationValue = unknown
```
Added in v2.0.0
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1077,9 +1077,9 @@
"@effect/language-service": "^0.0.21",
"@preconstruct/cli": "^2.8.1",
"@types/chai": "^4.3.6",
"@types/node": "^20.8.3",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"@types/node": "^20.8.4",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"@vitejs/plugin-react": "^4.1.0",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/expect": "^0.34.6",
Expand Down
Loading

0 comments on commit 8c81e58

Please sign in to comment.