Skip to main content

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 NameExample ValueAllowed Values
cloud.platformhetzner_cloudhetzner_cloud
host.id12345678Hetzner server ID
host.typecpx51Hetzner server type
cloud.regionhel1Hetzner 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"