Skip to content

Add stored procedure columns to events#9

Merged
cjksplunk merged 82 commits into
mainfrom
add-stored-procedure-columns-to-events
Jan 23, 2026
Merged

Add stored procedure columns to events#9
cjksplunk merged 82 commits into
mainfrom
add-stored-procedure-columns-to-events

Conversation

@cjksplunk
Copy link
Copy Markdown
Owner

Description

Link to tracking issue

Fixes

Testing

Documentation

cjksplunk and others added 30 commits November 24, 2025 10:09
# Conflicts:
#	receiver/sqlserverreceiver/templates/dbQueryAndTextQuery.tmpl
cjksplunk and others added 29 commits January 12, 2026 10:07
…or (open-telemetry#45584)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Add E2E tests for Upcloud detector

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Relates to open-telemetry#24671

---------

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
…open-telemetry#45583)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Add E2E tests for Vultr detector

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Relates to open-telemetry#24671

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
…pen-telemetry#45438)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Add E2E tests for EC2 detector

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Relates to open-telemetry#24671

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
…tor (open-telemetry#45590)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Add E2E tests for scaleway detector

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Relates to open-telemetry#24671

---------

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
…open-telemetry#45569)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Add E2E tests for Azure detector

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Relates to open-telemetry#24671

---------

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
…telemetry#45563)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes

<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->
…elemetry#44350)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Added logic to suppress repeated error logs due to file permission
errors within the `filelog` receiver.

- Updated `makeFingerprint` to check for permission errors via
[os.isPermission](https://pkg.go.dev/os#IsPermission)
- Log an error only on the first occurrence for a given file path and
add it to an in-memory map, guarded by a mutex to avoid race conditions
for concurrent read/writes.
- Debug log only for subsequent read attempt (to avoid spam)
- When the file becomes readable, info log a message and remove the path
from the stored set

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
open-telemetry#39491

<!--Describe what testing was performed and which tests were added.-->
#### Testing
New unit test verifying:
- First unreadable-open produces exactly one Error-level log.
- Second attempt does not produce another Error-level log.
- When permissions are restored, an Info-level `Previously
unreadable...` message appears.

NOTE: Test skips Windows due to unreliable os.Chmod behavior

<!--Describe the documentation added.-->
#### Documentation
Added changelog yaml entry summarizing the issue and fix.

<!--Please delete paragraphs that you did not use before submitting.-->
…elemetry#45281)

#### Description

Improves the performance of `Trailing` and `Leading` functions. You can
see it in the benchmarks results here:

```
goos: linux
goarch: amd64
pkg: github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/trim
cpu: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
                                    │ Previous code │               This PR                │
                                    │    sec/op     │    sec/op     vs base                │
TrimFuncs/leading/small_clean-16      20.345n ± 23%   2.924n ± 18%  -85.63% (p=0.000 n=10)
TrimFuncs/leading/small_dirty-16       24.65n ± 30%   12.77n ± 10%  -48.22% (p=0.000 n=10)
TrimFuncs/leading/all_space-16         25.91n ± 13%   13.38n ±  8%  -48.35% (p=0.000 n=10)
TrimFuncs/leading/large_dirty-16      21.440n ± 15%   8.457n ±  7%  -60.56% (p=0.000 n=10)
TrimFuncs/trailing/small_clean-16     16.400n ±  8%   2.737n ±  3%  -83.31% (p=0.000 n=10)
TrimFuncs/trailing/small_dirty-16      18.88n ± 14%   10.37n ±  8%  -45.10% (p=0.000 n=10)
TrimFuncs/trailing/all_space-16        22.61n ±  5%   12.10n ±  7%  -46.50% (p=0.000 n=10)
TrimFuncs/trailing/large_dirty-16     19.085n ± 10%   7.271n ± 22%  -61.90% (p=0.000 n=10)
TrimFuncs/whitespace/small_clean-16   29.895n ±  4%   3.788n ±  3%  -87.33% (p=0.000 n=10)
TrimFuncs/whitespace/small_dirty-16    41.10n ± 11%   17.20n ±  3%  -58.16% (p=0.000 n=10)
TrimFuncs/whitespace/all_space-16      24.47n ±  7%   13.22n ± 17%  -45.97% (p=0.000 n=10)
TrimFuncs/whitespace/large_dirty-16    36.59n ± 15%   12.82n ± 15%  -64.95% (p=0.000 n=10)
TrimFuncs/nop/small_clean-16           2.071n ±  8%   1.937n ±  7%        ~ (p=0.052 n=10)
TrimFuncs/nop/small_dirty-16           2.048n ±  7%   1.939n ±  4%        ~ (p=0.063 n=10)
TrimFuncs/nop/all_space-16             2.346n ± 10%   2.022n ±  4%  -13.83% (p=0.000 n=10)
TrimFuncs/nop/large_dirty-16           2.355n ±  9%   2.175n ± 12%   -7.62% (p=0.023 n=10)
WithFunc/baseline_scanlines-16         215.8n ± 11%   219.5n ±  3%        ~ (p=0.755 n=10)
WithFunc/with_whitespace-16            237.3n ± 12%   237.9n ± 13%        ~ (p=0.912 n=10)
ToLength/under_limit-16                241.7n ± 12%   267.3n ± 17%  +10.57% (p=0.002 n=10)
ToLength/over_limit-16                 266.9n ± 12%   247.1n ± 20%        ~ (p=0.393 n=10)
geomean                                23.72n         12.33n        -48.00%

                                    │ Previous code │               This PR               │
                                    │     B/op      │    B/op     vs base                 │
TrimFuncs/leading/small_clean-16       0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/leading/small_dirty-16       0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/leading/all_space-16         0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/leading/large_dirty-16       0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/trailing/small_clean-16      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/trailing/small_dirty-16      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/trailing/all_space-16        0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/trailing/large_dirty-16      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/whitespace/small_clean-16    0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/whitespace/small_dirty-16    0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/whitespace/all_space-16      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/whitespace/large_dirty-16    0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/nop/small_clean-16           0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/nop/small_dirty-16           0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/nop/all_space-16             0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/nop/large_dirty-16           0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
WithFunc/baseline_scanlines-16         0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
WithFunc/with_whitespace-16            0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
ToLength/under_limit-16                0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
ToLength/over_limit-16                 0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
geomean                                           ²               +0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

                                    │ Previous code │               This PR               │
                                    │   allocs/op   │ allocs/op   vs base                 │
TrimFuncs/leading/small_clean-16       0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/leading/small_dirty-16       0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/leading/all_space-16         0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/leading/large_dirty-16       0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/trailing/small_clean-16      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/trailing/small_dirty-16      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/trailing/all_space-16        0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/trailing/large_dirty-16      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/whitespace/small_clean-16    0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/whitespace/small_dirty-16    0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/whitespace/all_space-16      0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/whitespace/large_dirty-16    0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/nop/small_clean-16           0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/nop/small_dirty-16           0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/nop/all_space-16             0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
TrimFuncs/nop/large_dirty-16           0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
WithFunc/baseline_scanlines-16         0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
WithFunc/with_whitespace-16            0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
ToLength/under_limit-16                0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
ToLength/over_limit-16                 0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
geomean                                           ²               +0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean
```
…45602)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

I enabled the usage of the `gh` CLI in
open-telemetry#45477,
but I forgot to ensure the variable `GH_TOKEN` is configured with the
proper value.

This will fix that issue, but the workflow should be triggered manually
after this merge.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes open-telemetry#45600

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
@cjksplunk cjksplunk merged commit 260e4aa into main Jan 23, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants