Skip to content

Conversation

@jeremydvoss
Copy link
Member

@jeremydvoss jeremydvoss commented Oct 16, 2025

Description

Fixedint was added and pinned one day before the latest version came out. Updating it to allow for the latest version. Should be removed in the future.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@github-actions github-actions bot added the Monitor - Exporter Monitor OpenTelemetry Exporter label Oct 16, 2025
@jeremydvoss jeremydvoss marked this pull request as ready for review October 17, 2025 17:36
@Copilot Copilot AI review requested due to automatic review settings October 17, 2025 17:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR relaxes the fixedint dependency from an exact pin to a version range to allow future compatible updates and records the change in the unreleased changelog section.

  • Updated setup.py to change fixedint from ==0.1.6 to >=0.1.6,<1.0.0
  • Added a changelog note documenting the dependency adjustment

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
sdk/monitor/azure-monitor-opentelemetry-exporter/setup.py Adjusts fixedint dependency specification to a wider semver range.
sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md Adds entry noting the relaxed fixedint dependency constraint.

@jeremydvoss jeremydvoss changed the title Unpin fixedint Remove fixedint Oct 17, 2025
_SAMPLING_HASH = 5381
_INTEGER_MAX: int = Int32.maxval
_INTEGER_MIN: int = Int32.minval
_INTEGER_MAX: int = 2147483647
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do something like


_INT32_MAX = 2**31 - 1   # 2147483647
_INT32_MIN = -2**31      # -2147483648

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

### Bugs Fixed

### Other Changes
- Remove fixedint dependency
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will we never require fixedint?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is only used for a single constant. It's not a good reason to increase or vulnerability surface.

_SAMPLING_HASH = 5381
_INTEGER_MAX: int = Int32.maxval
_INTEGER_MIN: int = Int32.minval
_INTEGER_MAX: int = 2147483647
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utils.py also uses from fixedint import Int32

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, let me see if that's needed

@jeremydvoss
Copy link
Member Author

Converting to draft until we investigate more

@jeremydvoss jeremydvoss marked this pull request as draft October 17, 2025 18:28
@jeremydvoss
Copy link
Member Author

Needs tests for _get_DJB2_sample_score.

@jeremydvoss jeremydvoss changed the title Remove fixedint Update fixedint dependency Oct 22, 2025
@jeremydvoss jeremydvoss marked this pull request as ready for review October 22, 2025 17:40
Copy link
Member

@rads-1996 rads-1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Monitor - Exporter Monitor OpenTelemetry Exporter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants