diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fc3ede0b1..0611bc191d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ Increment the: * Convert Prometheus Exporter to Pull MetricReader [#1953](https://github.com/open-telemetry/opentelemetry-cpp/pull/1953) * Upgrade prometheus-cpp to v1.1.0 [#1954](https://github.com/open-telemetry/opentelemetry-cpp/pull/1954) * [CI] Enforce copyright check in CI [#1965](https://github.com/open-telemetry/opentelemetry-cpp/pull/1965) +* [SEMANTIC CONVENTIONS] Upgrade to version 1.18.0 + [#1974](https://github.com/open-telemetry/opentelemetry-cpp/pull/1974) ## [1.8.2] 2023-01-31 diff --git a/api/include/opentelemetry/trace/semantic_conventions.h b/api/include/opentelemetry/trace/semantic_conventions.h index d2d7bf76bb..d0485704ef 100644 --- a/api/include/opentelemetry/trace/semantic_conventions.h +++ b/api/include/opentelemetry/trace/semantic_conventions.h @@ -21,7 +21,7 @@ namespace SemanticConventions /** * The URL of the OpenTelemetry schema for these keys and values. */ -static constexpr const char *kSchemaUrl = "https://opentelemetry.io/schemas/1.17.0"; +static constexpr const char *kSchemaUrl = "https://opentelemetry.io/schemas/1.18.0"; /** * The type of the exception (its fully-qualified class name, if applicable). The dynamic type of @@ -595,12 +595,12 @@ static constexpr const char *kHttpTarget = "http.target"; /** * The matched route (path template in the format used by the respective server framework). See note - below +below * *

Notes: -

+ */ static constexpr const char *kHttpRoute = "http.route"; @@ -1079,6 +1079,8 @@ namespace DbSystemValues static constexpr const char *kOtherSql = "other_sql"; /** Microsoft SQL Server. */ static constexpr const char *kMssql = "mssql"; +/** Microsoft SQL Server Compact. */ +static constexpr const char *kMssqlcompact = "mssqlcompact"; /** MySQL. */ static constexpr const char *kMysql = "mysql"; /** Oracle Database. */ @@ -1173,6 +1175,8 @@ static constexpr const char *kCockroachdb = "cockroachdb"; static constexpr const char *kOpensearch = "opensearch"; /** ClickHouse. */ static constexpr const char *kClickhouse = "clickhouse"; +/** Cloud Spanner. */ +static constexpr const char *kSpanner = "spanner"; } // namespace DbSystemValues namespace DbCassandraConsistencyLevelValues diff --git a/buildscripts/semantic-convention/generate.sh b/buildscripts/semantic-convention/generate.sh index d0d0272ca8..ee9d3ae1a4 100755 --- a/buildscripts/semantic-convention/generate.sh +++ b/buildscripts/semantic-convention/generate.sh @@ -13,10 +13,15 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ROOT_DIR="${SCRIPT_DIR}/../../" # freeze the spec & generator tools versions to make SemanticAttributes generation reproducible -SEMCONV_VERSION=1.17.0 + +# repository: https://github.com/open-telemetry/opentelemetry-specification +SEMCONV_VERSION=1.18.0 + +# repository: https://github.com/open-telemetry/build-tools +GENERATOR_VERSION=0.15.1 + SPEC_VERSION=v$SEMCONV_VERSION SCHEMA_URL=https://opentelemetry.io/schemas/$SEMCONV_VERSION -GENERATOR_VERSION=0.14.0 cd ${SCRIPT_DIR} @@ -30,6 +35,12 @@ git fetch origin "$SPEC_VERSION" git reset --hard FETCH_HEAD cd ${SCRIPT_DIR} +# echo "Help ..." + +# docker run --rm otel/semconvgen:$GENERATOR_VERSION -h + +echo "Generating semantic conventions for traces ..." + docker run --rm \ -v ${SCRIPT_DIR}/opentelemetry-specification/semantic_conventions:/source \ -v ${SCRIPT_DIR}/templates:/templates \ @@ -45,6 +56,8 @@ docker run --rm \ -Dnamespace_open="namespace trace {" \ -Dnamespace_close="}" +echo "Generating semantic conventions for resources ..." + docker run --rm \ -v ${SCRIPT_DIR}/opentelemetry-specification/semantic_conventions:/source \ -v ${SCRIPT_DIR}/templates:/templates \ diff --git a/sdk/include/opentelemetry/sdk/resource/semantic_conventions.h b/sdk/include/opentelemetry/sdk/resource/semantic_conventions.h index e6e982e1b2..27aff268cc 100644 --- a/sdk/include/opentelemetry/sdk/resource/semantic_conventions.h +++ b/sdk/include/opentelemetry/sdk/resource/semantic_conventions.h @@ -23,7 +23,7 @@ namespace SemanticConventions /** * The URL of the OpenTelemetry schema for these keys and values. */ -static constexpr const char *kSchemaUrl = "https://opentelemetry.io/schemas/1.17.0"; +static constexpr const char *kSchemaUrl = "https://opentelemetry.io/schemas/1.18.0"; /** * Array of brand name and version separated by a space @@ -754,7 +754,7 @@ static constexpr const char *kGcpCloudFunctions = "gcp_cloud_functions"; /** Google Cloud App Engine (GAE). */ static constexpr const char *kGcpAppEngine = "gcp_app_engine"; /** Red Hat OpenShift on Google Cloud. */ -static constexpr const char *kGoogleCloudOpenshift = "google_cloud_openshift"; +static constexpr const char *kGcpOpenshift = "gcp_openshift"; /** Red Hat OpenShift on IBM Cloud. */ static constexpr const char *kIbmCloudOpenshift = "ibm_cloud_openshift"; /** Tencent Cloud Cloud Virtual Machine (CVM). */