
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
@opentelemetry/instrumentation-oracledb
Advanced tools
OpenTelemetry instrumentation for `oracledb` database client for Oracle DB
This module provides automatic instrumentation for the oracledb
module, which may be loaded using the @opentelemetry/sdk-trace-node
package and is included in the @opentelemetry/auto-instrumentations-node
bundle.
If total installation size is not constrained, it is recommended to use the @opentelemetry/auto-instrumentations-node
bundle with @opentelemetry/sdk-node for the most seamless instrumentation experience.
Compatible with OpenTelemetry JS API and SDK 1.0+
.
npm install --save @opentelemetry/instrumentation-oracledb
oracledb
versions >=6.7.0 <7
OpenTelemetry OracleInstrumentation allows the user to automatically collect trace data and export them to the backend of choice, to give observability to distributed systems when working with oracledb. This module works with both Thin and Thick modes of the oracledb package, although there may be some caveats with Thick Mode now, which are listed in a later paragraph.
To load a specific plugin (OracleInstrumentation in this case), specify it in the configuration of the registerInstrumentations object.
const { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');
const { OracleInstrumentation } = require('@opentelemetry/instrumentation-oracledb');
const { registerInstrumentations } = require('@opentelemetry/instrumentation');
const provider = new NodeTracerProvider();
provider.register();
registerInstrumentations({
instrumentations: [
new OracleInstrumentation(),
],
})
Caveats with oracledb
Thick mode:
Options | Type | Default | Description |
---|---|---|---|
enhancedDatabaseReporting | boolean | false | If true, details about the sql statement's bind values (being set on parameters db.operation.parameter.<key> ) and the sql string (being set on parameter db.query.text ) will be attached to the spans generated |
dbStatementDump | boolean | false | If true, db.query.text will contain the sql string in the spans generated |
requestHook | OracleInstrumentationExecutionRequestHook (function) | Function for adding custom span attributes using information about the data for the sql statement being executed | |
responseHook | OracleInstrumentationExecutionResponseHook (function) | Function for adding custom span attributes from the db response | |
requireParentSpan | boolean | false | If true, requires a parent span to create new spans |
Apache 2.0 - See LICENSE for more information.
FAQs
OpenTelemetry instrumentation for `oracledb` database client for Oracle DB
The npm package @opentelemetry/instrumentation-oracledb receives a total of 97,781 weekly downloads. As such, @opentelemetry/instrumentation-oracledb popularity was classified as popular.
We found that @opentelemetry/instrumentation-oracledb demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.