Skip to content

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 04 Jun 22:57
7f0bea3

HoneyHive Python SDK v1.2.0

What's Changed

Added

  • Metric versions API: client.metric_versions
    • New client.metric_versions.list(metric_id), .create(metric_id, request), and .deploy(metric_id, version_name) methods (plus *_async variants) for managing a metric's immutable version history, backed by /v1/metrics/{metric_id}/versions. Each metric keeps a history of versions with one deployed at a time; pass deploy_immediately=True on create to atomically deploy the new version. Version request/response models are exported from honeyhive.models.

Fixed

  • OTLP JSON exporter: serialize numeric fields as JSON strings
    • Integer span attributes (intValue) and uint64 timestamp fields
      (startTimeUnixNano, endTimeUnixNano, timeUnixNano) were emitted as
      raw JSON numbers. The protobuf JSON mapping spec requires these to be JSON
      strings; values above 2^53 could otherwise lose precision silently through
      float64 rounding. Now matches native opentelemetry-exporter-otlp-proto-http
      behavior.
  • Decorator input capture: remove truncation of serialized list/dict values
    • List and dict span attributes are serialized to strings and
      previously were truncated to 1000 characters in length. The arbitrary limit
      of 1000 characters has been removed.

Installation

pip install honeyhive==1.2.0

Links