Skip to content

Commit 7481e69

Browse files
committed
lint fixes and generated files.
1 parent 5e18297 commit 7481e69

File tree

5 files changed

+125
-18
lines changed

5 files changed

+125
-18
lines changed

receiver/oracledbreceiver/documentation.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,87 @@ Number of SELECT statements executed in parallel
369369
| ---- | ----------- | ---------- | ----------------------- | --------- |
370370
| {queries} | Sum | Int | Cumulative | true |
371371
372+
## Default Events
373+
374+
The following events are emitted by default. Each of them can be disabled by applying the following configuration:
375+
376+
```yaml
377+
events:
378+
<event_name>:
379+
enabled: false
380+
```
381+
382+
## Optional Events
383+
384+
The following events are not emitted by default. Each of them can be enabled by applying the following configuration:
385+
386+
```yaml
387+
events:
388+
<event_name>:
389+
enabled: true
390+
```
391+
392+
### db.server.query_sample
393+
394+
sample query
395+
396+
#### Attributes
397+
398+
| Name | Description | Values |
399+
| ---- | ----------- | ------ |
400+
| db.query.text | The text of the database query being executed. | Any Str |
401+
| db.system.name | The database management system (DBMS) product as identified by the client instrumentation. | Any Str |
402+
| user.name | Database user name under which a session is connected to | Any Str |
403+
| client.address | Identifies the name of the machine (host) from which the database client is connecting to the Oracle database. | Any Str |
404+
| oracledb.plan_hash_value | Binary hash value calculated on the query execution plan and used to identify similar query execution plans, reported in the HEX format. | Any Str |
405+
| oracledb.sql_id | The SQL ID of the query. | Any Str |
406+
| oracledb.child_number | The child number of the query. | Any Str |
407+
| oracledb.sid | ID of the Oracle Server session. | Any Str |
408+
| oracledb.serial | Serial number associated with a session. | Any Str |
409+
| oracledb.process | The operating system process ID (PID) associated with a session. | Any Str |
410+
| oracledb.schemaname | Oracle schema under which SQL statements are being executed | Any Str |
411+
| oracledb.program | Name of the client program or tool that initiated the Oracle database session. | Any Str |
412+
| oracledb.module | Logical module name of the client application that initiated a query or session. | Any Str |
413+
| oracledb.status | Execution state or result of a database query or session. | Any Str |
414+
| oracledb.state | Current state of the query or the session executing it. | Any Str |
415+
| oracledb.wait_class | The category of wait events a query or session is currently experiencing in Oracle Database. | Any Str |
416+
| oracledb.event | The specific wait event that a query or session is currently experiencing. | Any Str |
417+
| oracledb.object_name | Name of the database object that a query is accessing. | Any Str |
418+
| oracledb.object_type | Type of the database object that a query is accessing. | Any Str |
419+
| oracledb.osuser | Name of the operating system user that initiated or is running the Oracle database session. | Any Str |
420+
| oracledb.duration_sec | Total time taken by a database query to execute. | Any Double |
421+
422+
### db.server.top_query
423+
424+
top query
425+
426+
#### Attributes
427+
428+
| Name | Description | Values |
429+
| ---- | ----------- | ------ |
430+
| db.system.name | The database management system (DBMS) product as identified by the client instrumentation. | Any Str |
431+
| db.server.name | The name of the server hosting the database. | Any Str |
432+
| db.query.text | The text of the database query being executed. | Any Str |
433+
| oracledb.query_plan | The query execution plan used by the SQL Server. | Any Str |
434+
| oracledb.sql_id | The SQL ID of the query. | Any Str |
435+
| oracledb.child_number | The child number of the query. | Any Str |
436+
| oracledb.application_wait_time | The total time (in seconds) a query spent waiting on the application before it could proceed with execution (reporting delta). | Any Double |
437+
| oracledb.buffer_gets | Number of logical reads (i.e., buffer cache accesses) performed by a query (reporting delta). | Any Int |
438+
| oracledb.cluster_wait_time | Total time (in seconds) that a query waited due to Oracle Real Application Clusters (RAC) coordination (reporting delta). | Any Double |
439+
| oracledb.concurrency_wait_time | Total time (in seconds) a query spent waiting on concurrency-related events (reporting delta). | Any Double |
440+
| oracledb.cpu_time | Total time (in seconds) that the CPU spent actively processing a query, excluding time spent waiting (reporting delta). | Any Double |
441+
| oracledb.direct_reads | The number of direct path reads performed by a query — i.e., data blocks read directly from disk into the session’s memory (reporting delta). | Any Int |
442+
| oracledb.direct_writes | The number of direct path write operations, where data is written directly to disk from user memory (reporting delta). | Any Int |
443+
| oracledb.disk_reads | The number of physical reads a query performs — that is, the number of data blocks read from disk (reporting delta). | Any Int |
444+
| oracledb.elapsed_time | The total time (in seconds) taken by a query from start to finish, including CPU time and all types of waits (reporting delta). | Any Double |
445+
| oracledb.executions | The number of times a specific SQL query has been executed (reporting delta). | Any Int |
446+
| oracledb.physical_read_bytes | The total number of bytes read from disk by a query (reporting delta). | Any Int |
447+
| oracledb.physical_read_requests | The number of physical I/O read operations performed by a query (reporting delta). | Any Int |
448+
| oracledb.physical_write_bytes | The total number of bytes written to disk by a query (reporting delta). | Any Int |
449+
| oracledb.physical_write_requests | The number of times a query requested to write data to disk (reporting delta). | Any Int |
450+
| oracledb.rows_processed | The total number of rows that a query has read, returned, or affected during its execution (reporting delta). | Any Int |
451+
| oracledb.user_io_wait_time | The total time (in seconds) a query spent waiting for user I/O operations—such as reading or writing data to disk or network file systems (reporting delta). | Any Double |
452+
372453
## Resource Attributes
373454
374455
| Name | Description | Values | Enabled |

receiver/oracledbreceiver/generated_package_test.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/oracledbreceiver/internal/metadata/generated_logs.go

Lines changed: 22 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)