Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Lin Lin <[email protected]>
  • Loading branch information
xuan-cao-swi and cheempz authored Jan 7, 2025
1 parent 3bc43f4 commit c972696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ end
`add_tracer` can add a custom span to the specified instance or class method that is already defined. It requires the custom span name and optionally takes the span kind and additional attributes in hash format:

```ruby
add_tracer :function_name, 'custom_span_name', { attributes: { 'any' => 'attributes' }, kind: :span_kind }
add_tracer :method_name, 'custom_span_name', { attributes: { 'any' => 'attributes' }, kind: :span_kind }
```

For example, if you want to instrument class function or instance function `create_session` inside application controller
Expand Down

0 comments on commit c972696

Please sign in to comment.