Skip to content

v0.3.0

Choose a tag to compare

@a-feld a-feld released this 20 Apr 22:08

Backwards Incompatible Changes

The compression_threshold argument has been removed from SpanClient, MetricClient, and EventClient constructors. Code that omits compression_threshold from the client argument list will not be impacted.

Example (OK)

import os
from newrelic_telemetry_sdk import MetricClient

metric_client = MetricClient(os.environ['NEW_RELIC_INSERT_KEY'])

Example (Incompatible)

import os
from newrelic_telemetry_sdk import MetricClient

# compression_threshold has been removed, so the following code will result in an exception
metric_client = MetricClient(os.environ['NEW_RELIC_INSERT_KEY'], compression_threshold=0)

API Additions

Users can now override the HTTP port used by the telemetry SDK in all clients. (#20)

Port can now be overridden via arguments to clients.

Example

import os
from newrelic_telemetry_sdk import SpanClient

span_client = SpanClient(os.environ['NEW_RELIC_INSERT_KEY'], port=8000)