@pocket-tools/tracing 0.0.0-development

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.
@@ -0,0 +1,20 @@
1
+
2
+ > @pocket-tools/tracing@0.0.0-development build /Users/daniel/Work/pocket-monorepo/packages/tracing
3
+ > tsup src/index.ts --format cjs,esm --dts
4
+
5
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.0.2
8
+ CLI Target: es2019
9
+ CJS Build start
10
+ ESM Build start
11
+ CJS You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin
12
+ ESM You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin
13
+ ESM dist/index.mjs 62.14 KB
14
+ ESM ⚡️ Build success in 130ms
15
+ CJS dist/index.js 64.18 KB
16
+ CJS ⚡️ Build success in 130ms
17
+ DTS Build start
18
+ DTS ⚡️ Build success in 2181ms
19
+ DTS dist/index.d.ts 400.00 B
20
+ DTS dist/index.d.mts 400.00 B
@@ -0,0 +1,4 @@
1
+
2
+ > @pocket-tools/tracing@0.0.0-development format /Users/daniel/Work/pocket-monorepo/packages/tracing
3
+ > eslint --fix "src/**/*.ts"
4
+
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Tracing
2
+
3
+ We use this package to implement tracing within our servers
@@ -0,0 +1,15 @@
1
+ import { DiagLogger } from '@opentelemetry/api';
2
+
3
+ type TracingConfig = {
4
+ serviceName: string;
5
+ release: string;
6
+ samplingRatio?: number;
7
+ graphQLDepth?: number;
8
+ grpcDefaultPort?: number;
9
+ httpDefaultPort?: number;
10
+ host?: string;
11
+ logger?: DiagLogger;
12
+ };
13
+ declare function nodeSDKBuilder(config: TracingConfig): Promise<void>;
14
+
15
+ export { type TracingConfig, nodeSDKBuilder };
@@ -0,0 +1,15 @@
1
+ import { DiagLogger } from '@opentelemetry/api';
2
+
3
+ type TracingConfig = {
4
+ serviceName: string;
5
+ release: string;
6
+ samplingRatio?: number;
7
+ graphQLDepth?: number;
8
+ grpcDefaultPort?: number;
9
+ httpDefaultPort?: number;
10
+ host?: string;
11
+ logger?: DiagLogger;
12
+ };
13
+ declare function nodeSDKBuilder(config: TracingConfig): Promise<void>;
14
+
15
+ export { type TracingConfig, nodeSDKBuilder };