Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
howardyoo authored Aug 26, 2024
1 parent 3cc166b commit d571159
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ You can also submit your very own log message which then can automatically conve

#### Metrics

> ⚠️ Metrics, unlike traces, do not have contexts (e.g. dag run, trace, etc), and have intervals for them to be reported in a fixed amount of time. Because of this, please note that if what you instrument would likely be very short and end before the set interval time (e.g. 5 seconds), those metrics will not have time to be emitted. In that case, generating span or span events may be a better way to instrument those.
You can use otel hook to increment counter of certain actions
```python
otel_hook.incr('my.counter')
Expand Down

0 comments on commit d571159

Please sign in to comment.