You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
2d4c9dc115
- Add the new metric API package structure prototyped in https://github.com/MrAlias/semconv-go Prototypes of new metric API use: - https://github.com/MrAlias/opentelemetry-go-contrib/pull/6136 - https://github.com/MrAlias/opentelemetry-go-contrib/pull/6135 - https://github.com/MrAlias/opentelemetry-go-contrib/pull/6134 - Generate `semconv/v1.32.0` - Drop the `kestrel` metric namespace as this is a Java specific technology ## [`v1.32.0` semantic convention release notes](https://github.com/open-telemetry/semantic-conventions/releases/tag/v1.32.0): <div data-pjax="true" data-test-selector="body-content" data-view-component="true" class="markdown-body my-3"><p>📣 This release is the second release candidate for the Database Semantic Conventions, with <strong>db conventions stability planned to be declared in the subsequent release</strong>.</p> <h3>🛑 Breaking changes 🛑</h3> <ul> <li><code>device</code>: Change the definition of <code>device.id</code> and make it opt-in. (<a href="https://github.com/open-telemetry/semantic-conventions/issues/1874" data-hovercard-type="issue" data-hovercard-url="/open-telemetry/semantic-conventions/issues/1874/hovercard">#1874</a>, <a href="https://github.com/open-telemetry/semantic-conventions/issues/1951" data-hovercard-type="pull_request" data-hovercard-url="/open-telemetry/semantic-conventions/pull/1951/hovercard">#1951</a>)</li> <li><code>feature_flag</code>: Rename <code>evaluation</code> to <code>result</code> for feature flag evaluation result attributes (<a href="https://github.com/open-telemetry/semantic-conventions/issues/1989" data-hovercard-type="pull_request" data-hovercard-url="/open-telemetry/semantic-conventions/pull/1989/hovercard">#1989</a>)</li> </ul> <h3>🚀 New components 🚀</h3> <ul> <li><code>app</code>: Create <code>app.installation.id</code> attribute (<a href="https://github.com/open-telemetry/semantic-conventions/issues/1874" data-hovercard-type="issue" data-hovercard-url="/open-telemetry/semantic-conventions/issues/1874/hovercard">#1874</a>, <a href="https://github.com/open-telemetry/semantic-conventions/issues/1897" data-hovercard-type="pull_request" data-hovercard-url="/open-telemetry/semantic-conventions/pull/1897/hovercard">#1897</a>)</li> <li><code>cpython</code>: Add CPython runtime garbage collector metrics (<a href="https://github.com/open-telemetry/semantic-conventions/issues/1930" data-hovercard-type="issue" data-hovercard-url="/open-telemetry/semantic-conventions/issues/1930/hovercard">#1930</a>)</li> </ul> <h3>💡 Enhancements 💡</h3> <ul> <li><code>vcs</code>: Add owner and provider name to VCS attribute registry (<a href="https://github.com/open-telemetry/semantic-conventions/issues/1452" data-hovercard-type="issue" data-hovercard-url="/open-telemetry/semantic-conventions/issues/1452/hovercard">#1452</a>)</li> <li><code>vcs</code>: Remove fallback value for VCS provider name attribute (<a href="https://github.com/open-telemetry/semantic-conventions/issues/2020" data-hovercard-type="pull_request" data-hovercard-url="/open-telemetry/semantic-conventions/pull/2020/hovercard">#2020</a>)</li> <li><code>db</code>: Truncate <code>db.query.summary</code> to 255 characters if parsed from the query (<a href="https://github.com/open-telemetry/semantic-conventions/issues/1978" data-hovercard-type="issue" data-hovercard-url="/open-telemetry/semantic-conventions/issues/1978/hovercard">#1978</a>)</li> <li><code>db</code>: Normalize spaces in <code>db.operation.name</code> (if any) (<a href="https://github.com/open-telemetry/semantic-conventions/issues/2028" data-hovercard-type="issue" data-hovercard-url="/open-telemetry/semantic-conventions/issues/2028/hovercard">#2028</a>)</li> <li><code>db</code>: <code>db.operation.parameter.<key></code> should not be captured for batch operations (<a href="https://github.com/open-telemetry/semantic-conventions/issues/2026" data-hovercard-type="issue" data-hovercard-url="/open-telemetry/semantic-conventions/issues/2026/hovercard">#2026</a>)</li> <li><code>db</code>: Add <code>db.stored_procedure.name</code> (<a href="https://github.com/open-telemetry/semantic-conventions/issues/1491" data-hovercard-type="issue" data-hovercard-url="/open-telemetry/semantic-conventions/issues/1491/hovercard">#1491</a>)</li> <li><code>gcp</code>: Adds GCP AppHub labels for resource. (<a href="https://github.com/open-telemetry/semantic-conventions/issues/2006" data-hovercard-type="pull_request" data-hovercard-url="/open-telemetry/semantic-conventions/pull/2006/hovercard">#2006</a>)</li> <li><code>error</code>: Add <code>error.message</code> property for human-readable error message on events. (<a href="https://github.com/open-telemetry/semantic-conventions/issues/1992" data-hovercard-type="pull_request" data-hovercard-url="/open-telemetry/semantic-conventions/pull/1992/hovercard">#1992</a>)</li> <li><code>profile</code>: Extend the list of known frame types with a value for Go and Rust (<a href="https://github.com/open-telemetry/semantic-conventions/issues/2003" data-hovercard-type="pull_request" data-hovercard-url="/open-telemetry/semantic-conventions/pull/2003/hovercard">#2003</a>)</li> <li><code>otel</code>: Adds SDK self-monitoring metrics for log processing (<a href="https://github.com/open-telemetry/semantic-conventions/issues/1921" data-hovercard-type="pull_request" data-hovercard-url="/open-telemetry/semantic-conventions/pull/1921/hovercard">#1921</a>)</li> </ul>
234 lines
3.7 KiB
YAML
234 lines
3.7 KiB
YAML
params:
|
|
excluded_namespaces:
|
|
- "aspnetcore"
|
|
- "cpython"
|
|
- "dotnet"
|
|
- "jvm"
|
|
- "kestrel"
|
|
- "nodejs"
|
|
- "v8js"
|
|
excluded_attributes: ["messaging.client_id"]
|
|
templates:
|
|
- pattern: attribute_group.go.j2
|
|
filter: >
|
|
semconv_grouped_attributes({
|
|
"exclude_deprecated": true,
|
|
"exclude_root_namespace": $excluded_namespaces,
|
|
})
|
|
| map({
|
|
root_namespace: .root_namespace,
|
|
attributes: .attributes | map(select(.name as $st | $excluded_attributes[] | index($st) | not)),
|
|
})
|
|
application_mode: single
|
|
file_name: attribute_group.go
|
|
- pattern: metric.go.j2
|
|
filter: >
|
|
semconv_grouped_metrics({
|
|
"exclude_deprecated": true,
|
|
"exclude_root_namespace": $excluded_namespaces,
|
|
})
|
|
application_mode: each
|
|
file_name: "{{ctx.root_namespace | camel_case | lower }}conv/metric.go"
|
|
comment_formats:
|
|
go:
|
|
format: markdown
|
|
prefix: "// "
|
|
indent_first_level_list_items: true
|
|
shortcut_reference_link: true
|
|
trim: true
|
|
word_wrap:
|
|
line_length: 80
|
|
go_1tab:
|
|
format: markdown
|
|
prefix: " // "
|
|
indent_first_level_list_items: true
|
|
shortcut_reference_link: true
|
|
trim: true
|
|
word_wrap:
|
|
line_length: 80
|
|
default_comment_format: go
|
|
text_maps:
|
|
attribute_type_method:
|
|
string: String
|
|
string[]: StringSlice
|
|
int: Int
|
|
int[]: IntSlice
|
|
double: Float64
|
|
double[]: FloatSlice
|
|
boolean: Bool
|
|
boolean[]: BoolSlice
|
|
attribute_type_value:
|
|
string: string
|
|
string[]: "...string"
|
|
int: int
|
|
int[]: "...int"
|
|
double: float64
|
|
double[]: "...float64"
|
|
boolean: bool
|
|
boolean[]: "...bool"
|
|
instrument:
|
|
cpu.time: Float64ObservableCounter
|
|
go.config.gogc: Int64ObservableUpDownCounter
|
|
go.goroutine.count: Int64ObservableUpDownCounter
|
|
go.memory.allocated: Int64ObservableCounter
|
|
go.memory.allocations: Int64ObservableCounter
|
|
go.memory.gc.goal: Int64ObservableUpDownCounter
|
|
go.memory.limit: Int64ObservableUpDownCounter
|
|
go.memory.used: Int64ObservableCounter
|
|
go.processor.limit: Int64ObservableUpDownCounter
|
|
process.cpu.time: Float64ObservableCounter
|
|
system.memory.usage: Int64ObservableGauge
|
|
system.memory.utilization: Float64ObservableGauge
|
|
system.network.io: Int64ObservableCounter
|
|
acronyms:
|
|
- ACL
|
|
- AI
|
|
- AIX
|
|
- AKS
|
|
- AMD64
|
|
- API
|
|
- ARM32
|
|
- ARM64
|
|
- ARN
|
|
- ARNs
|
|
- ASCII
|
|
- ASPNETCore
|
|
- AWS
|
|
- ActiveMQ
|
|
- AppHub
|
|
- CICD
|
|
- CPP
|
|
- CPU
|
|
- CSI
|
|
- CSS
|
|
- CVM
|
|
- ClickHouse
|
|
- CloudEvents
|
|
- CloudFoundry
|
|
- CockroachDB
|
|
- CosmosDB
|
|
- CouchDB
|
|
- CronJob
|
|
- DB
|
|
- DB2
|
|
- DC
|
|
- DNS
|
|
- DaemonSet
|
|
- DragonflyBSD
|
|
- DynamoDB
|
|
- EC2
|
|
- ECS
|
|
- EDB
|
|
- EKS
|
|
- EOF
|
|
- EventGrid
|
|
- EventHubs
|
|
- FC
|
|
- FaaS
|
|
- FirebirdSQL
|
|
- FirstSQL
|
|
- FreeBSD
|
|
- GC
|
|
- GCE
|
|
- GCP
|
|
- GNU
|
|
- GRPC
|
|
- GUID
|
|
- GraphQL
|
|
- HANA
|
|
- HBase
|
|
- HPA
|
|
- HPUX
|
|
- HSQLDB
|
|
- HTML
|
|
- HTTP
|
|
- HTTPS
|
|
- HanaDB
|
|
- IA64
|
|
- IBM
|
|
- ICC
|
|
- ID
|
|
- IO
|
|
- IOS
|
|
- IOWait
|
|
- IP
|
|
- IPv4
|
|
- IPv6
|
|
- ISO
|
|
- InProc
|
|
- InfluxDB
|
|
- InstantDB
|
|
- JDBC
|
|
- JMS
|
|
- JSON
|
|
- JSONRPC
|
|
- JVM
|
|
- K8S
|
|
- LHS
|
|
- MCC
|
|
- MNC
|
|
- MSSQL
|
|
- MariaDB
|
|
- MaxDB
|
|
- MongoDB
|
|
- MySQL
|
|
- NetBSD
|
|
- OCI
|
|
- OKE
|
|
- OS
|
|
- OTel
|
|
- OpenAI
|
|
- OpenBSD
|
|
- OpenSearch
|
|
- OpenShift
|
|
- OpenTracing
|
|
- PHP
|
|
- PID
|
|
- PPC32
|
|
- PPC64
|
|
- PostgreSQL
|
|
- PubSub
|
|
- QPS
|
|
- QUIC
|
|
- RAM
|
|
- RHS
|
|
- RPC
|
|
- RabbitMQ
|
|
- ReplicaSet
|
|
- ReplicationController
|
|
- ResourceQuota
|
|
- RocketMQ
|
|
- SAP
|
|
- SCF
|
|
- SDK
|
|
- SLA
|
|
- SMTP
|
|
- SPDY
|
|
- SQL
|
|
- SQLite
|
|
- SQS
|
|
- SSH
|
|
- ServiceBus
|
|
- SignalR
|
|
- StatefulSet
|
|
- TCP
|
|
- TLS
|
|
- TTL
|
|
- UDP
|
|
- UI
|
|
- UID
|
|
- URI
|
|
- URL
|
|
- UTF8
|
|
- UUID
|
|
- V8JS
|
|
- VCS
|
|
- VM
|
|
- WebEngine
|
|
- WebJS
|
|
- XML
|
|
- XMPP
|
|
- XSRF
|
|
- XSS
|
|
- ZOS
|