Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 216b346

Browse files
OrGeva10gitbook-bot
authored andcommitted
GitBook: [#169] live-flow
1 parent b5fc146 commit 216b346

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

send-tracing-data-to-aspecto/aspecto-sdk/nodejs/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ After obtaining your token [here](https://app.aspecto.io/app/integration/api-key
4646
{% tab title="JavaScript" %}
4747
```javascript
4848
require('@aspecto/opentelemetry')({
49-
local:true,
5049
aspectoAuth: '*your-token-goes-here*'
5150
});
5251
// ... other imports ...
@@ -57,7 +56,6 @@ require('@aspecto/opentelemetry')({
5756
```typescript
5857
import init from '@aspecto/opentelemetry';
5958
init({
60-
local: true,
6159
aspectoAuth: '*your-token-goes-here*'
6260
});
6361
// ... other imports ...

send-tracing-data-to-aspecto/aspecto-sdk/nodejs/customize-defaults/advanced.md

-24
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ Available install configurations (all are optional):
5555
| `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. |
5656
| `logger` | - | logger interface | | Logger to be used in this tracing library. Common use for debugging `logger: console` |
5757
| `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) |
5958
| `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 |
6059
| `exportBatchSize` | `ASPECTO_EXPORT_BATCH_SIZE` | number | `100` | How many spans to batch in a single export to the collector |
6160
| `exportBatchTimeoutMs` | `ASPECTO_EXPORT_BATCH_TIMEOUT_MS` | number | `1000` (1s) | Maximum time in ms for batching spans before sending to collector |
@@ -79,26 +78,3 @@ To export data over JSON instead of protobuf, set the environment variable `ASP
7978
Set the environment variable `DISABLE_ASPECTO` to any value, to disable Aspecto.\
8079
Affect lambda and GCF wrappers as well.\
8180
Useful when running unit tests, or as a simple kill switch.
82-
83-
####  **Live Trace**
84-
85-
Live trace allows you to capture traces from all the microservices that you're running locally (both on the host env and docker) with`local`mode enabled. To activate live trace mode use `local` option like so:
86-
87-
```javascript
88-
require('@aspecto/opentelemetry')({ local: true });
89-
```
90-
91-
 Once the process starts it will output the following link:
92-
93-
```
94-
=====================================================================================================================================
95-
| |
96-
| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-traces/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578 |
97-
| |
98-
=====================================================================================================================================
99-
```
100-
101-
Click on the link to open the Live Trace, to see traces from all the microservices that are running on your environment that have local mode enabled. The link is valid for a limited period of time (a couple of days, but it may change in the future). \
102-
If you don't see a trace from some microservice (or none of them), click the newly-generated link.
103-
104-
##

0 commit comments

Comments
 (0)