Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Jul 26, 2024
1 parent 128d37f commit 3993617
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Callable[[CallbackOptions], Iterable[Observation]],
Generator[Iterable[Observation], CallbackOptions, None],
]
from opentelemetry.metrics import Counter, ObservableGauge, UpDownCounter
from opentelemetry.metrics import Counter, UpDownCounter

PROCESS_CONTEXT_SWITCHES: Final = "process.context_switches"
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Callable[[CallbackOptions], Iterable[Observation]],
Generator[Iterable[Observation], CallbackOptions, None],
]
from opentelemetry.metrics import Counter, ObservableGauge, UpDownCounter
from opentelemetry.metrics import Counter, UpDownCounter

SYSTEM_CPU_FREQUENCY: Final = "system.cpu.frequency"
"""
Expand Down
2 changes: 1 addition & 1 deletion scripts/semconv/templates/registry/semantic_metrics.j2
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ CallbackT = Union[
]
{%- endif %}

{%- set instruments = ["counter", "histogram", "gauge", "updowncounter"]-%}
{%- set instruments = ["counter", "histogram", "updowncounter"]-%}
{%- for i in instruments -%}
{%- if ctx.metrics | selectattr("instrument", "equalto", i) | list | count > 0 %}
from opentelemetry.metrics import {{i | map_text("py_instrument_to_type")}}
Expand Down

0 comments on commit 3993617

Please sign in to comment.