Hetzner Cloud
Required Hetzner Cloud Attributes
The following cost calculation tags are required for traces originating from Hetzner Cloud servers.
Always Required Fields
These fields are always required for Hetzner Cloud cost calculation:
| Attribute Name | Example Value | Allowed Values |
|---|---|---|
cloud.platform | hetzner_cloud | hetzner_cloud |
host.id | 12345678 | Hetzner server ID |
host.type | cpx51 | Hetzner server type |
cloud.region | hel1 | Hetzner datacenter location |
Cost Calculation
Hetzner Cloud servers are priced at an hourly rate. Beakpoint calculates cost based on span duration:
cost = hourly_rate × (span_duration_seconds / 3600)
When multiple spans overlap on the same VM (identified by cloud.platform + host.id + host.type), costs are proportionally shared using a time-sharing algorithm. Spans on different server instances are priced independently.
Example Configuration
Set these as OpenTelemetry resource attributes in your application:
OTEL_RESOURCE_ATTRIBUTES: "cloud.platform=hetzner_cloud,host.id=12345678,host.type=cpx51,cloud.region=hel1"