Hibernate
OpenTelemetry Java agent instrumentation
This instrumentation enables spans for Hibernate ORM operations.
- Name:
hibernate-6.0 - Scope:
io.opentelemetry.hibernate-6.0 - Target versions:
org.hibernate.orm:hibernate-core:[6.0.0.Final,) - Library: https://hibernate.org/
Telemetry
When default
Spans
| Span kind | Attributes |
|---|---|
| INTERNAL |
When otel.instrumentation.hibernate.experimental-span-attributes=true
Spans
| Span kind | Attributes |
|---|---|
| INTERNAL | hibernate.session_id (STRING) |
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
java.common.database.statement_sanitizer.enabled | boolean | true | Deprecated: use java.common.db.query_sanitization.enabled instead. It is ignored under v3 preview. |
otel.instrumentation.common.db-statement-sanitizer.enabled | boolean | true | Deprecated: use otel.instrumentation.common.db.query-sanitization.enabled instead. It is ignored under v3 preview and will be removed in 3.0. |
otel.instrumentation.common.db.query-sanitization.enabled | boolean | true | Enables query sanitization for database queries. |
otel.instrumentation.hibernate.experimental-span-attributes | boolean | false | Enables the experimental hibernate.session_id span attribute. |
otel.instrumentation.hibernate.query-sanitization.enabled | boolean | Enables query sanitization for Hibernate queries. Overrides otel.instrumentation.common.db.query-sanitization.enabled for this instrumentation; when unset, that setting applies. | |
otel.instrumentation.hibernate.statement-sanitizer.enabled | boolean | Deprecated: use otel.instrumentation.hibernate.query-sanitization.enabled instead. It is ignored under v3 preview and will be removed in 3.0. When unset, this setting falls back to otel.instrumentation.common.db.query-sanitization.enabled (including its deprecated aliases). |