Commit df815a6
authored
chore: update project id constants (#358)
## Summary
Add extra constants for LD attribute extraction.
## How did you test this change?
<!--
Frontend - Leave a screencast or a screenshot to visually describe the
changes.
-->
## Are there any deployment considerations?
<!--
Backend - Do we need to consider migrations or backfilling data?
-->
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Constant-only changes; main risk is downstream integrations depending
on the old `X-LaunchDarkly-Project` header casing or different attribute
names.
>
> **Overview**
> Updates Go OTEL constants to better support LaunchDarkly project
identification: normalizes `LDProjectIDHeader` to lowercase
(`x-launchdarkly-project`) and adds a new `LDProjectIDAttribute`
(`launchdarkly.project_id`) alongside the existing Highlight attribute.
>
> Reintroduces explicit *deprecated* constants for legacy
Highlight/session/trace/source keys (`highlight_project_id`,
`highlight_session_id`, `highlight_trace_id`, `Source`) while keeping
the canonical `highlight.*` attributes unchanged, enabling
backward-compatible extraction paths.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
498330e. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 5663977 commit df815a6
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 39 | + | |
| 40 | + | |
43 | 41 | | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
0 commit comments