@logtape/otel 0.3.0-dev.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/esm/deno.js +1 -1
- package/package.json +1 -1
- package/script/deno.js +1 -1
- package/types/mod.d.ts +3 -2
- package/types/mod.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -153,7 +153,16 @@ Changelog
|
|
|
153
153
|
|
|
154
154
|
### Version 0.3.0
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
Released on February 26, 2025.
|
|
157
|
+
|
|
158
|
+
- Now you can customize the body formatter. [[#1] by Hyeseong Kim]
|
|
159
|
+
|
|
160
|
+
- Added `BodyFormatter` type.
|
|
161
|
+
- Changed the type of `OpenTelemetrySinkOptions.messageType` to
|
|
162
|
+
`"string" | "array" | BodyFormatter | undefined` (was
|
|
163
|
+
`"string" | "array" | undefined`).
|
|
164
|
+
|
|
165
|
+
[#1]: https://github.com/dahlia/logtape-otel/pull/1
|
|
157
166
|
|
|
158
167
|
|
|
159
168
|
### Version 0.2.0
|
package/esm/deno.js
CHANGED
package/package.json
CHANGED
package/script/deno.js
CHANGED
package/types/mod.d.ts
CHANGED
|
@@ -28,7 +28,8 @@ type ILoggerProvider = LoggerProviderBase & {
|
|
|
28
28
|
export type ObjectRenderer = "json" | "inspect";
|
|
29
29
|
type Message = (string | null | undefined)[];
|
|
30
30
|
/**
|
|
31
|
-
* Custom `body` attribute formatter
|
|
31
|
+
* Custom `body` attribute formatter.
|
|
32
|
+
* @since 0.3.0
|
|
32
33
|
*/
|
|
33
34
|
export type BodyFormatter = (message: Message) => AnyValue;
|
|
34
35
|
/**
|
|
@@ -44,9 +45,9 @@ export interface OpenTelemetrySinkOptions {
|
|
|
44
45
|
* the message is rendered as a single string with the values are
|
|
45
46
|
* interpolated into the message. If `"array"`, the message is
|
|
46
47
|
* rendered as an array of strings. `"string"` by default.
|
|
47
|
-
* @since 0.2.0
|
|
48
48
|
*
|
|
49
49
|
* Or even fully customizable with a {@link BodyFormatter} function.
|
|
50
|
+
* @since 0.2.0
|
|
50
51
|
*/
|
|
51
52
|
messageType?: "string" | "array" | BodyFormatter;
|
|
52
53
|
/**
|
package/types/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,IAAI,EACV,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,cAAc,IAAI,kBAAkB,EAG1C,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAC;AAKjC;;GAEG;AACH,KAAK,eAAe,GAAG,kBAAkB,GAAG;IAC1C;;;OAGG;IACH,qBAAqB,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAE3D;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,SAAS,CAAC;AAEhD,KAAK,OAAO,GAAG,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC;AAE7C
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,IAAI,EACV,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,cAAc,IAAI,kBAAkB,EAG1C,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,yBAA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