Skip to content

Commit 2e37b51

Browse files
committed
Updated Changelog
1 parent 7ecb39b commit 2e37b51

File tree

2 files changed

+29
-20
lines changed

2 files changed

+29
-20
lines changed

CHANGELOG.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44

55
### Various fixes & improvements
66

7-
- tests: Update tox.ini (#4799) by @sentrivana
8-
- fix(logs): Expect `log_item` as rate limit category (#4798) by @sentrivana
9-
- feat(integrations): Support gql 4.0-style execute (#4779) by @sentrivana
10-
- build(deps): bump actions/create-github-app-token from 2.1.1 to 2.1.4 (#4795) by @dependabot
11-
- chore: Reexport module `profiler` (#4535) by @zen-xu
12-
- feat(anthropic): Add proper tool calling data to Anthropic integration (#4769) by @antonpirker
13-
- Correctly check for a running transaction (#4791) by @antonpirker
14-
- ci: Fix mypy, gevent (#4790) by @sentrivana
15-
- ref(tracing): Use float for sample rand (#4677) by @sentrivana
16-
- Avoid reporting false-positive StopAsyncIteration in the asyncio integration (#4741) by @vmarkovtsev
17-
- feat(ai): Create transaction in AI agents framworks, when no transaction is running. (#4758) by @constantinius
18-
- build(deps): bump codecov/codecov-action from 5.5.0 to 5.5.1 (#4773) by @dependabot
19-
- build(deps): bump actions/setup-python from 5 to 6 (#4774) by @dependabot
20-
- Add log message when `DedupeIntegration` is dropping an error. (#4788) by @antonpirker
21-
- Add input and output to `invoke_agent` span. (#4785) by @antonpirker
22-
- Update HuggingFace Hub integration (#4746) by @antonpirker
23-
- fix(profiling): Re-init continuous profiler (#4772) by @Zylphrex
7+
- Feat(huggingface_hub): Update HuggingFace Hub integration (#4746) by @antonpirker
8+
- Feat(Anthropic): Add proper tool calling data to Anthropic integration (#4769) by @antonpirker
9+
- Feat(openai-agents): Add input and output to `invoke_agent` span. (#4785) by @antonpirker
10+
- Feat(AI): Create transaction in AI agents framworks, when no transaction is running. (#4758) by @constantinius
11+
- Feat(GraphQL): Support gql 4.0-style execute (#4779) by @sentrivana
12+
- Fix(logs): Expect `log_item` as rate limit category (#4798) by @sentrivana
13+
- Fix: CI for mypy, gevent (#4790) by @sentrivana
14+
- Fix: Correctly check for a running transaction (#4791) by @antonpirker
15+
- Fix: Use float for sample rand (#4677) by @sentrivana
16+
- Fix: Avoid reporting false-positive StopAsyncIteration in the asyncio integration (#4741) by @vmarkovtsev
17+
- Fix: Add log message when `DedupeIntegration` is dropping an error. (#4788) by @antonpirker
18+
- Fix(profiling): Re-init continuous profiler (#4772) by @Zylphrex
19+
- Chore: Reexport module `profiler` (#4535) by @zen-xu
20+
- Tests: Update tox.ini (#4799) by @sentrivana
21+
- Build(deps): bump actions/create-github-app-token from 2.1.1 to 2.1.4 (#4795) by @dependabot
22+
- Build(deps): bump actions/setup-python from 5 to 6 (#4774) by @dependabot
23+
- Build(deps): bump codecov/codecov-action from 5.5.0 to 5.5.1 (#4773) by @dependabot
2424

2525
## 2.37.1
2626

sentry_sdk/tracing.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,10 +708,19 @@ def finish(self, scope=None, end_timestamp=None):
708708
end_timestamp = datetime.fromtimestamp(end_timestamp, timezone.utc)
709709
self.timestamp = end_timestamp
710710
else:
711-
elapsed = nanosecond_time() - self._start_timestamp_monotonic_ns
712-
self.timestamp = self.start_timestamp + timedelta(
713-
microseconds=elapsed / 1000
711+
print(f"In Span.finish for span {self}")
712+
now = nanosecond_time()
713+
elapsed = now - self._start_timestamp_monotonic_ns
714+
print(f"NOW before assigment: {now}")
715+
self.timestamp = (
716+
self.start_timestamp
717+
+ timedelta( # The assignment in this line is taking a lot of time
718+
microseconds=elapsed / 1000
719+
)
714720
)
721+
now2 = nanosecond_time()
722+
print(f"NOW2 after assigment: {now2}")
723+
print(f"Assignment duration: {now2 - now}")
715724
except AttributeError:
716725
self.timestamp = datetime.now(timezone.utc)
717726

0 commit comments

Comments
 (0)