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
**Warning: Some instrumentations are not yet stable and their configuration and the attributes they collect are subject to change until the instrumentation reaches 1.0 stability. It is recommended to pin a specific version of an instrumentation to avoid breaking changes.**
197
197
198
-
OpenTelemetry can collect tracing data from various applications automatically using plugins. The plugins offer instrumenting popular frameworks such as
199
-
Hapi, Express, Redis, GraphQL, and many more. The full list of supported libraries and installation instructions can be found on the
198
+
OpenTelemetry can collect tracing data from various applications automatically using plugins. The plugins offer instrumenting popular frameworks such as
199
+
Hapi, Express, Redis, GraphQL, and many more. The full list of supported libraries and installation instructions can be found on the
@@ -233,11 +233,11 @@ const sdk = new opentelemetry.NodeSDK({
233
233
234
234
### Creating Custom Spans
235
235
236
-
You can use custom spans to monitor the performance of internal activities that are not captured by instrumentation libraries.
237
-
Note that only spans of kind `Server` are converted into X-Ray segments, all other spans are converted into X-Ray subsegments.
236
+
You can use custom spans to monitor the performance of internal activities that are not captured by instrumentation libraries.
237
+
Note that only spans of kind `Server` are converted into X-Ray segments, all other spans are converted into X-Ray subsegments.
238
238
For more on segments and subsegments, see the [AWS X-Ray developer guide](https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-segments).
239
239
240
-
```javascript
240
+
```javascript
241
241
const { SpanKind } =require("@opentelemetry/api")
242
242
243
243
constserverSpan=tracer.startActiveSpan('server', { kind:SpanKind.SERVER }); // This span will appear as a segment in X-Ray
@@ -249,8 +249,8 @@ serverSpan.end();
249
249
250
250
### Adding Custom Attributes
251
251
252
-
You can also add custom key-value pairs as attributes onto your spans. Attributes are converted to metadata by default.
253
-
If you [configure your collector](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/7bf2266a025425993a233f66c77a0810ab11a78b/exporter/awsxrayexporter#exporter-configuration), you can convert some or all of the attributes to annotations.
252
+
You can also add custom key-value pairs as attributes onto your spans. Attributes are converted to metadata by default.
253
+
If you [configure your collector](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/7bf2266a025425993a233f66c77a0810ab11a78b/exporter/awsxrayexporter#exporter-configuration), you can convert some or all of the attributes to annotations.
254
254
To read more about X-Ray annotations and metadata see the [AWS X-Ray Developer Guide](https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-annotations).
255
255
256
256
```javascript
@@ -264,6 +264,6 @@ Similarly to Traces, you can create custom metrics in your application using the
264
264
Refer to <Linkto="/docs/getting-started/js-sdk/metric-manual-instr">Metric-Manual-Instrumentation</Link> for introduction to metric creation using OpenTelemetry JavaScript SDK.
265
265
266
266
267
-
## Sample Application
267
+
## Sample Application
268
268
269
269
See the [AWS Distro for OpenTelemetry Sample Code with JavaScript SDK](https://github.com/aws-observability/aws-otel-community/tree/master/sample-apps/javascript-sample-app) for instructions on setting up and using the sample app.
0 commit comments