Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
71759f1
Adding the query and tracking of stored procedures to events
cjksplunk Nov 24, 2025
5498a7a
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Nov 24, 2025
97aab1a
Merge branch 'open-telemetry:main' into add-stored-procedure-columns-…
cjksplunk Nov 24, 2025
3b5ca90
Fixed missing process id
cjksplunk Nov 24, 2025
a8ffaef
Removing stored procedure type
cjksplunk Nov 25, 2025
0821ddf
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Nov 26, 2025
0e85536
Added changelog entry
cjksplunk Nov 26, 2025
c155be3
Added changelog entry
cjksplunk Nov 26, 2025
c1d747c
reverted changelog entry
cjksplunk Nov 26, 2025
f5a90a2
fix changelog entry
cjksplunk Nov 26, 2025
0bc4785
updates to variable naming and usage
cjksplunk Nov 26, 2025
f4eea59
updates to variable naming and usage
cjksplunk Nov 26, 2025
81d191f
updates to variable naming and usage
cjksplunk Nov 26, 2025
8a2b5ed
ran make generate
cjksplunk Nov 27, 2025
f504f37
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Nov 27, 2025
8024074
Moved QuerySampleCount and TopQueryCount ot of params and reference c…
cjksplunk Nov 27, 2025
0890020
Added issue to changelog
cjksplunk Dec 1, 2025
0bf933d
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Dec 2, 2025
fb96860
Replaced values with vars
cjksplunk Dec 2, 2025
c5d313a
Integrating stored procedure values for samples
cjksplunk Dec 2, 2025
28fa28f
updates to test data
cjksplunk Dec 2, 2025
b3c7078
Merge branch 'postgres-stored-procedure-stats' into add-stored-proced…
cjksplunk Dec 2, 2025
c8efaec
Backout unintended merge
cjksplunk Dec 2, 2025
1b76557
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Dec 2, 2025
9bc1b70
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Dec 16, 2025
a58a5c9
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Dec 16, 2025
26101d3
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Dec 17, 2025
7ba3c74
updating change log
cjksplunk Dec 17, 2025
f9531c3
Fix for inaccurate query count being reported in postgresql query met…
sv-splunk Jan 5, 2026
42432a7
change log
sv-splunk Jan 5, 2026
a06028f
this fix is for sqlserver
sv-splunk Jan 5, 2026
98e2e15
fill issue details
sv-splunk Jan 5, 2026
ca3a16a
go generate
sv-splunk Jan 6, 2026
e521c6f
fix lint
sv-splunk Jan 6, 2026
e7cf472
Merge branch 'main' into postgresql_fix_for_inaccurate_query_executio…
sv-splunk Jan 6, 2026
68893f7
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 6, 2026
3cf3d01
make gogci
sv-splunk Jan 6, 2026
58f51c5
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 6, 2026
20de936
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 7, 2026
9df4eb6
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 7, 2026
87935cd
tweak to samples sql
cjksplunk Jan 7, 2026
9433fdf
Revert checks around sending metrics for countInDb=1, since it's addr…
sv-splunk Jan 7, 2026
a2d7baf
Merge branch 'main' into postgresql_fix_for_inaccurate_query_executio…
sv-splunk Jan 8, 2026
7d1720c
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 8, 2026
132a147
Merge branch 'main' into postgresql_fix_for_inaccurate_query_executio…
sv-splunk Jan 8, 2026
4db323b
Updates in prep for testing
cjksplunk Jan 8, 2026
cf85aa1
Merge branch 'postgresql_fix_for_inaccurate_query_execution_count' in…
cjksplunk Jan 8, 2026
bb78240
fix lint
sv-splunk Jan 8, 2026
b47bd3e
cleanup
sv-splunk Jan 8, 2026
d051411
Fix invalid casting and update old test
sv-splunk Jan 9, 2026
e32d34c
Updating topN query to use HAVING instead of external WHERE clause
sv-splunk Jan 9, 2026
4795057
Merge branch 'main' into sqlserver_fix_for_inaccurate_query_execution…
sv-splunk Jan 9, 2026
0a6c22a
Merge branch 'sqlserver_fix_for_inaccurate_query_execution_count' int…
cjksplunk Jan 9, 2026
d6923c3
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 12, 2026
c36abac
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 15, 2026
53e83a2
Query Tuning
cjksplunk Jan 15, 2026
f521b20
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 16, 2026
cfaa9ea
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 20, 2026
45b2173
Adding '''WHERE st.text IS NOT NULL; ''' to topx and samples queries
cjksplunk Jan 20, 2026
ad0c684
Merge branch 'open-telemetry:main' into add-stored-procedure-columns-…
cjksplunk Jan 21, 2026
e52062a
Backed out changes to samples query
cjksplunk Jan 21, 2026
088a342
Adding documentation for default samples count
cjksplunk Jan 22, 2026
135c988
Revert "Add stored procedure columns to events (#1)"
cjksplunk Jan 22, 2026
0712589
Reapply "Add stored procedure columns to events (#1)"
cjksplunk Jan 22, 2026
5b5f5e8
Merge branch 'open-telemetry:main' into add-stored-procedure-columns-…
cjksplunk Jan 22, 2026
1299b7e
Merge branch 'main' into add-stored-procedure-columns-to-events
cjksplunk Jan 22, 2026
5b3bf23
removing not null from samples again
cjksplunk Jan 22, 2026
a14bac8
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 23, 2026
961984b
Updating documentation
cjksplunk Jan 23, 2026
dc103f1
Merge branch 'upstream-main'
cjksplunk Jan 23, 2026
ebe0a15
Merge branch 'main' into add-stored-procedure-columns-to-events
cjksplunk Jan 23, 2026
925178b
Merge remote-tracking branch 'origin/main'
cjksplunk Jan 23, 2026
bb200b3
Merge branch 'main' into add-stored-procedure-columns-to-events
cjksplunk Jan 23, 2026
229f31d
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 27, 2026
ed1e63b
Updates made per PR feedback.
cjksplunk Jan 27, 2026
5275cc2
Merge branch 'main' into add-stored-procedure-columns-to-events
cjksplunk Jan 27, 2026
4057f52
Removing unused comment
cjksplunk Jan 27, 2026
33b8ec3
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 30, 2026
87b1973
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 30, 2026
c381bc3
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Jan 30, 2026
f08ed4b
updated autogen docs
cjksplunk Jan 30, 2026
6b35cd9
Merge branch 'main' into add-stored-procedure-columns-to-events
cjksplunk Jan 30, 2026
4568405
Merge branch 'upstream-main' into add-stored-procedure-columns-to-events
cjksplunk Feb 3, 2026
487720b
Merge branch 'main' into add-stored-procedure-columns-to-events
cjksplunk Feb 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions receiver/sqlserverreceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ query sample
| sqlserver.wait_type | Type of wait encountered by the request. Empty if none. | Any Str |
| sqlserver.writes | Number of writes performed by the query. | Any Int |
| user.name | Login name associated with the SQL Server session. | Any Str |
| sqlserver.procedure_id | The SQLServer ID of the stored procedure, if any | Any Str |
| sqlserver.procedure_id | The SQL Server ID of the stored procedure, if any | Any Str |
| sqlserver.procedure_name | The name of the stored procedure, if any | Any Str |

### db.server.top_query
Expand All @@ -632,7 +632,7 @@ top query
| server.address | The network address of the server hosting the database. | Any Str |
| server.port | The port number on which the server is listening. | Any Int |
| db.system.name | The database management system (DBMS) product as identified by the client instrumentation. | Any Str |
| sqlserver.procedure_id | The SQLServer ID of the stored procedure, if any | Any Str |
| sqlserver.procedure_id | The SQL Server ID of the stored procedure, if any | Any Str |
| sqlserver.procedure_name | The name of the stored procedure, if any | Any Str |

## Resource Attributes
Expand Down
2 changes: 1 addition & 1 deletion receiver/sqlserverreceiver/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ func (s *sqlServerScraperHelper) recordDatabaseQueryTextAndPlan(ctx context.Cont
for i, row := range rows {
queryHashVal := hex.EncodeToString([]byte(row[queryHash]))
queryPlanHashVal := hex.EncodeToString([]byte(row[queryPlanHash]))
procID := row[storedProcedureID] // defaults to '0' if not present
procID := row[storedProcedureID] // defaulted to '0' if not present

elapsedTimeMicrosecond, err := strconv.ParseInt(row[totalElapsedTime], 10, 64)
if err != nil {
Expand Down
Loading