You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2024. It is now read-only.
After obtaining your token [here](https://app.aspecto.io/app/integration/api-key), **before any other import,** add the following call at the top of your app entry point:
|`env`|`NODE_ENV`| string |`process.env.NODE_ENV`| Set environment name manually |
51
-
|`aspectoAuth`|`ASPECTO_AUTH`| UUID || Set Aspecto token from code instead of using `aspecto.json`|
52
-
|`packageName`|`ASPECTO_PACKAGE_NAME`| string | "name" in `package.json`| Set packageName manually instead of reading it from `package.json`. For example: a service that runs in multiple "modes" |
53
-
|`packageVersion`|`ASPECTO_PACKAGE_VERSION`| string | "version" in `package.json`| Set packageVersion manually instead of reading it from `package.json`|
54
-
|`samplingRatio`|`ASPECTO_SAMPLING_RATIO`| number |`1.0`| How many of the traces starting in this service should be sampled. Set to number in range \[0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. Specific rules set via aspecto app takes precedence |
55
-
|`requireConfigForTraces`|`ASPECTO_REQUIRE_CONFIG_FOR_TRACES`| boolean |`false`| When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |
56
-
|`logger`| - | logger interface || Logger to be used in this tracing library. Common use for debugging `logger: console`|
57
-
|`collectPayloads`|`ASPECTO_COLLECT_PAYLOADS`| boolean |`true`| Should Aspecto SDK collect payloads of operations |
58
-
|`local`| - | boolean |`false`| When set to true, enable [live traces](https://www.npmjs.com/package/@aspecto/opentelemetry#live-traces)|
59
-
|`exportBatchSize`|`ASPECTO_EXPORT_BATCH_SIZE`| number |`100`| How many spans to batch in a single export to the collector |
60
-
|`exportBatchTimeoutMs`|`ASPECTO_EXPORT_BATCH_TIMEOUT_MS`| number |`1000` (1s) | Maximum time in ms for batching spans before sending to collector |
61
-
|`writeSystemLogs`| - | boolean |`false`| If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |
62
-
|`customZipkinEndpoint`| - | URL || Send all traces to additional Zipkin server for debug |
63
-
|`sqsExtractContextPropagationFromPayload`|`ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD`| boolean |`true`| For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with "Raw message delivery": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |
64
-
|`extractB3Context`|`ASPECTO_EXTRACT_B3_CONTEXT`| boolean |`false`| Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |
65
-
|`injectB3ContextSingleHeader`|`ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER`| boolean |`false`| Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |
66
-
|`injectB3ContextMultiHeader`|`ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER`| boolean |`false`| Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |
|`env`|`NODE_ENV`| string |`process.env.NODE_ENV`| Set environment name manually |
51
+
|`aspectoAuth`|`ASPECTO_AUTH`| UUID || Set Aspecto token from code instead of using `aspecto.json`|
52
+
|`serviceName`|`OTEL_SERVICE_NAME`| string | "name" in `package.json`| Set serviceName manually instead of reading it from `package.json`. For example: a service that runs in multiple "modes" |
53
+
|`serviceVersion`|`OTEL_SERVICE_VERSION`| string | "version" in `package.json`| Set serviceVersion manually instead of reading it from `package.json`|
54
+
|`samplingRatio`|`ASPECTO_SAMPLING_RATIO`| number |`1.0`| How many of the traces starting in this service should be sampled. Set to number in range \[0.0, 1.0] where `0.0` is no sampling, and `1.0` is sample all. Specific rules set via aspecto app takes precedence |
55
+
|`requireConfigForTraces`|`ASPECTO_REQUIRE_CONFIG_FOR_TRACES`| boolean |`false`| When `true`, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startup. |
56
+
|`logger`| - | logger interface || Logger to be used in this tracing library. Common use for debugging `logger: console`|
57
+
|`collectPayloads`|`ASPECTO_COLLECT_PAYLOADS`| boolean |`true`| Should Aspecto SDK collect payloads of operations |
58
+
|`local`| - | boolean |`false`| When set to true, enable [live traces](https://www.npmjs.com/package/@aspecto/opentelemetry#live-traces)|
59
+
|`otlpCollectorEndpoint`|`OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`| string |`https://otelcol-fast.aspecto.io/v1/trace`| Target URL to which the OTLP http exporter is going to send spans |
60
+
|`exportBatchSize`|`ASPECTO_EXPORT_BATCH_SIZE`| number |`100`| How many spans to batch in a single export to the collector |
61
+
|`exportBatchTimeoutMs`|`ASPECTO_EXPORT_BATCH_TIMEOUT_MS`| number |`1000` (1s) | Maximum time in ms for batching spans before sending to collector |
62
+
|`writeSystemLogs`| - | boolean |`false`| If `true`, emit all log messages from Opentelemetry SDK to supplied logger if present, or to console if missing |
63
+
|`customZipkinEndpoint`| - | URL || Send all traces to additional Zipkin server for debug |
64
+
|`sqsExtractContextPropagationFromPayload`|`ASPECTO_SQS_EXTRACT_CONTEXT_PROPAGATION_FROM_PAYLOAD`| boolean |`true`| For aws-sdk instrumentation. Should be true when the service receiveMessages from SQS which is subscribed to SNS and subscription configured with "Raw message delivery": Disabled. Setting to `false` is a bit more performant as it turns off JSON parse on message payload |
65
+
|`extractB3Context`|`ASPECTO_EXTRACT_B3_CONTEXT`| boolean |`false`| Set to `true` when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istio |
66
+
|`injectB3ContextSingleHeader`|`ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER`| boolean |`false`| Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **single header** protocol |
67
+
|`injectB3ContextMultiHeader`|`ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER`| boolean |`false`| Set to `true` when the service send traffic to another instrumented component that propagate context via B3 **multi header** protocol. For example: Envoy Proxy, Istio |
0 commit comments