Skip to content

Commit

Permalink
README.md updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Orlovsky committed Dec 2, 2024
1 parent 119b274 commit bd9173d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Import `lumigo_opentelemetry` at the beginning of your main file:
import lumigo_opentelemetry
```

##### Script instrumentation
#### Script instrumentation

For simple Python scripts that are not built around Lumigo or OpenTelemetry-instrumented libraries, you can use the `@lumigo_wrapped` decorator for activation. This approach is especially useful for standalone scripts, cron jobs, or similar use cases.

Expand Down Expand Up @@ -246,8 +246,6 @@ When applied, the decorator creates an OpenTelemetry span for the decorated func
- `input_kwargs`: The keyword arguments passed to the function.
- `return_value`: The value returned by the function.

This approach is particularly useful for standalone Python scripts or cron jobs where use of the [OpenTelemetry SDK](https://opentelemetry.io/docs/languages/python/) is not feasible.

Here's a simple example using the `@lumigo_wrapped` decorator:

```python
Expand Down

0 comments on commit bd9173d

Please sign in to comment.