Skip to content

Commit

Permalink
new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Jun 13, 2024
1 parent 3d0eb05 commit c8f57c3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under t
from typing from enum import Enum
# limitations under the License.

from enum import Enum
from typing import Final

MESSAGING_BATCH_MESSAGE_COUNT: Final = "messaging.batch.message_count"
Expand Down Expand Up @@ -312,14 +313,3 @@ class MessagingSystemValues(Enum):
"""RabbitMQ."""
ROCKETMQ: Final = "rocketmq"
"""Apache RocketMQ."""
e Bus."""
GCP_PUBSUB: Final = "gcp_pubsub"
"""Google Cloud Pub/Sub."""
JMS: Final = "jms"
"""Java Message Service."""
KAFKA: Final = "kafka"
"""Apache Kafka."""
RABBITMQ: Final = "rabbitmq"
"""RabbitMQ."""
ROCKETMQ: Final = "rocketmq"
""Apache RocketMQ."""
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
Callable[[CallbackOptions], Iterable[Observation]],
Generator[Iterable[Observation], CallbackOptions, None],
]

PROCESS_CONTEXT_SWITCHES: Final = "process.context_switches"
"""
Number of times the process has been context switched
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
Callable[[CallbackOptions], Iterable[Observation]],
Generator[Iterable[Observation], CallbackOptions, None],
]

SYSTEM_CPU_FREQUENCY: Final = "system.cpu.frequency"
"""
Reports the current frequency of the CPU in Hz
Expand Down
1 change: 1 addition & 0 deletions scripts/semconv/templates/semantic_metrics.j2
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ from typing import Final

{%- set constant_names = [] -%}
{%- for metric in filtered_metrics %}

{{metric.metric_name | to_const_name}}: Final = "{{metric.metric_name}}"
{{metric_brief(metric, metric.metric_name | to_const_name) }}

Expand Down

0 comments on commit c8f57c3

Please sign in to comment.