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
Copy file name to clipboardExpand all lines: README.md
+50-1Lines changed: 50 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -280,7 +280,8 @@ OpenTelemetry (OTEL)
280
280
281
281
Read more about OpenTelemetry in Python [here](https://opentelemetry.io/docs/instrumentation/python/)
282
282
283
-
### Quick-start
283
+
284
+
### Exporting Synapse Client Traces to Jaeger for developers
284
285
The following shows an example of setting up [jaegertracing](https://www.jaegertracing.io/docs/1.50/deployment/#all-in-one) via docker and executing a simple python script that implements the Synapse Python client.
285
286
286
287
#### Running the jaeger docker container
@@ -328,6 +329,54 @@ with tracer.start_as_current_span("my_function_span"):
328
329
syn.login(authToken='auth_token')
329
330
```
330
331
332
+
### Exporting Synapse Client Traces to SigNoz Cloud for developers
333
+
334
+
#### Prerequisites
335
+
1. Create an account and obtain access to Signoz Cloud.
336
+
2. Create an ingestion key by following the step [here](https://signoz.io/docs/ingestion/signoz-cloud/keys/).
337
+
338
+
#### Environment Variable Configuration
339
+
The following environment variables are required to be set:
Explanation of both required and optional environment variables:
345
+
##### Required
346
+
*`OTEL_EXPORTER_OTLP_ENDPOINT`: The OTLP endpoint to which telemetry is exported.
347
+
*`OTEL_EXPORTER_OTLP_HEADERS`: Authentication/metadata for exports (e.g., API keys, tokens). For SigNoz, use `signoz-ingestion-key=<key>`.
348
+
349
+
##### Optional
350
+
*`OTEL_SERVICE_NAME`: Unique identifier for your app/service in telemetry data (defaults to synapseclient). Use a descriptive name so you can easily filter and analyze traces per service.
351
+
*`OTEL_DEBUG_CONSOLE`: Controls local visibility of telemetry data. Set to 'true' to output trace information to the console, which is useful for development and troubleshooting without an external collector.
352
+
*`OTEL_SERVICE_INSTANCE_ID`: Distinguishes between multiple instances of the same service (e.g., 'prod', 'development', 'local'). This helps identify which specific deployment or environment generated particular traces.
353
+
354
+
#### Enabling OpenTelemetry in your code
355
+
To enable OpenTelemetry with the Synapse Python client, simply call the
356
+
`enable_open_telemetry()` method on the Synapse class. Additionally you can access an
357
+
instance of the OpenTelemetry tracer via the `get_tracer()` call. This will allow you
0 commit comments