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 ad67739 commit 3bc43f4
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 @@ -80,7 +80,7 @@ class StaticController < ApplicationController
end
```

`add_tracer` can add a custom span to the specified instance or class method that is already defined. `add_tracer` allow to set custom span name, span kind and additional attributes in hash format
`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 }
Expand Down

0 comments on commit 3bc43f4

Please sign in to comment.