-
Notifications
You must be signed in to change notification settings - Fork 11
/
ServiceAttributes.java
39 lines (32 loc) · 1.24 KB
/
ServiceAttributes.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.semconv;
import static io.opentelemetry.api.common.AttributeKey.stringKey;
import io.opentelemetry.api.common.AttributeKey;
// DO NOT EDIT, this is an Auto-generated file from
// buildscripts/templates/SemanticAttributes.java.j2
@SuppressWarnings("unused")
public final class ServiceAttributes {
/**
* Logical name of the service.
*
* <p>Notes:
*
* <ul>
* <li>MUST be the same for all instances of horizontally scaled services. If the value was not
* specified, SDKs MUST fallback to {@code unknown_service:} concatenated with <a
* href="process.md#process">{@code process.executable.name}</a>, e.g. {@code
* unknown_service:bash}. If {@code process.executable.name} is not available, the value
* MUST be set to {@code unknown_service}.
* </ul>
*/
public static final AttributeKey<String> SERVICE_NAME = stringKey("service.name");
/**
* The version string of the service API or implementation. The format is not defined by these
* conventions.
*/
public static final AttributeKey<String> SERVICE_VERSION = stringKey("service.version");
private ServiceAttributes() {}
}