SDKs & exporters
HopMetric is OTLP-native, so any OpenTelemetry SDK works with the standard gRPC exporter. Point the exporter at connect.api.hopmetric.net:443 and add the API-key header.
Go
exp, _ := otlptracegrpc.New(ctx,
otlptracegrpc.WithEndpoint("connect.api.hopmetric.net:443"),
otlptracegrpc.WithHeaders(map[string]string{"x-api-key": key}),
)
Python
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
exporter = OTLPSpanExporter(
endpoint="connect.api.hopmetric.net:443",
headers=(("x-api-key", key),),
)
Node.js
new OTLPTraceExporter({
url: "https://connect.api.hopmetric.net:443",
headers: { "x-api-key": process.env.HOPMETRIC_API_KEY },
});