Skip to content

Commit

Permalink
chore: switch from error to error_type for lib injection tag (#9545)
Browse files Browse the repository at this point in the history
## Checklist

- [x] Change(s) are motivated and described in the PR description
- [x] Testing strategy is described if automated tests are not included
in the PR
- [x] Risks are described (performance impact, potential for breakage,
maintainability)
- [x] Change is maintainable (easy to change, telemetry, documentation)
- [x] [Library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
are followed or label `changelog/no-changelog` is set
- [x] Documentation is included (in-code, generated user docs, [public
corp docs](https://github.com/DataDog/documentation/))
- [x] Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))
- [x] If this PR changes the public interface, I've notified
`@DataDog/apm-tees`.

## Reviewer Checklist

- [ ] Title is accurate
- [ ] All changes are related to the pull request's stated goal
- [ ] Description motivates each change
- [ ] Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- [ ] Testing strategy adequately addresses listed risks
- [ ] Change is maintainable (easy to change, telemetry, documentation)
- [ ] Release note makes sense to a user of the library
- [ ] Author has acknowledged and discussed the performance implications
of this PR as reported in the benchmarks PR comment
- [ ] Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
  • Loading branch information
ZStriker19 authored Jun 14, 2024
1 parent 3e2ce17 commit bd047bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib-injection/sitecustomize.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def _inject():
send_telemetry(event)
except Exception as e:
event = gen_telemetry_payload(
[create_count_metric("library_entrypoint.error", ["error:" + type(e).__name__.lower()])]
[create_count_metric("library_entrypoint.error", ["error_type:" + type(e).__name__.lower()])]
)
send_telemetry(event)
_log("failed to load ddtrace.bootstrap.sitecustomize: %s" % e, level="error")
Expand Down

0 comments on commit bd047bc

Please sign in to comment.