Skip to content

The python docs on 'Sending Performance Metrics' says to use set_measurement, but that is deprecated #14518

@kdebrab

Description

@kdebrab

SDK

Python SDK

Description

When using set_measurement as proposed on https://docs.sentry.io/platforms/python/tracing/span-metrics/performance-metrics/#custom-measurements, one gets following DeprecationWarning:

DeprecationWarning: set_measurement() is deprecated and will be removed in the next major version. Please use set_data() instead.

As a sidenote, on https://docs.sentry.io/platforms/python/migration/2.x-to-3.x#span-data, I read that also set_data() will become deprecated in 3.x.

I have two questions:

  • The docs on the docs on 'Sending Performance Metrics' should be updated or at least mention that set_measurement is deprecated.
  • It's a bit unfortunate to migrate to a method that soon also will be deprecated. Is there a way to avoid having to migrate twice?

Suggested Solution

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions