Skip to content

Commit c7fcb17

Browse files
committed
- retain copyrights to oracledb specific source files.
removed copyright from component_owners.yml
1 parent 77a08a7 commit c7fcb17

File tree

10 files changed

+59
-18
lines changed

10 files changed

+59
-18
lines changed

.github/component_owners.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ components:
116116
plugins/node/opentelemetry-instrumentation-net:
117117
- seemk
118118
plugins/node/opentelemetry-instrumentation-oracledb:
119-
- sudarshan12s (Copyright (c) 2025, Oracle and/or its affiliates.)
120-
- sharadraju (Copyright (c) 2025, Oracle and/or its affiliates.)
119+
- sudarshan12s
120+
- sharadraju
121121
plugins/node/instrumentation-runtime-node:
122122
- d4nyll
123123
plugins/node/opentelemetry-instrumentation-pg:
Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,36 @@
1+
const parentConfig = require('../../../eslint.config.js');
2+
13
module.exports = {
2-
"env": {
3-
"mocha": true,
4-
"node": true
4+
extends: '../../../eslint.config.js', // Extends the top-level config
5+
ignorePatterns: [
6+
...(parentConfig.ignorePatterns || []), // Retain parent's ignorePatterns array
7+
'src/version.ts', // ignore this file
8+
],
9+
env: {
10+
mocha: true,
11+
node: true
512
},
6-
...require('../../../eslint.config.js')
13+
rules: {
14+
"header/header": ["error", "block", [{
15+
pattern: /\* Copyright The OpenTelemetry Authors(?:, [^,\r\n]*)?[\r\n]+ \*[\r\n]+ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);[\r\n]+ \* you may not use this file except in compliance with the License\.[\r\n]+ \* You may obtain a copy of the License at[\r\n]+ \*[\r\n]+ \* {6}https:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0[\r\n]+ \*[\r\n]+ \* Unless required by applicable law or agreed to in writing, software[\r\n]+ \* distributed under the License is distributed on an "AS IS" BASIS,[\r\n]+ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.[\r\n]+ \* See the License for the specific language governing permissions and[\r\n]+ \* limitations under the License\.[\r\n]+ \*[\r\n]+ \* Copyright \(c\) 2025, Oracle and\/or its affiliates\.[\r\n]+ \*/gm,
16+
template: `
17+
* Copyright The OpenTelemetry Authors
18+
*
19+
* Licensed under the Apache License, Version 2.0 (the "License");
20+
* you may not use this file except in compliance with the License.
21+
* You may obtain a copy of the License at
22+
*
23+
* https://www.apache.org/licenses/LICENSE-2.0
24+
*
25+
* Unless required by applicable law or agreed to in writing, software
26+
* distributed under the License is distributed on an "AS IS" BASIS,
27+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28+
* See the License for the specific language governing permissions and
29+
* limitations under the License.
30+
*
31+
* Copyright (c) 2025, Oracle and/or its affiliates.
32+
* `
33+
}]]
34+
}
735
}
36+

plugins/node/opentelemetry-instrumentation-oracledb/src/OracleTelemetryTraceHandler.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*/
16-
15+
*
16+
* Copyright (c) 2025, Oracle and/or its affiliates.
17+
* */
1718
import { safeExecuteInTheMiddle } from '@opentelemetry/instrumentation';
1819
import {
1920
Span,

plugins/node/opentelemetry-instrumentation-oracledb/src/constants.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*/
15+
*
16+
* Copyright (c) 2025, Oracle and/or its affiliates.
17+
* */
1618

1719
// Oracle specific attributes not covered by standard semantic conventions.
1820
// See: https://github.com/open-telemetry/semantic-conventions/pull/1911

plugins/node/opentelemetry-instrumentation-oracledb/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*/
15+
*
16+
* Copyright (c) 2025, Oracle and/or its affiliates.
17+
* */
1618

1719
export * from './instrumentation';
1820
export * from './types';

plugins/node/opentelemetry-instrumentation-oracledb/src/instrumentation.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*/
16-
15+
*
16+
* Copyright (c) 2025, Oracle and/or its affiliates.
17+
* */
1718
import {
1819
InstrumentationBase,
1920
InstrumentationNodeModuleDefinition,

plugins/node/opentelemetry-instrumentation-oracledb/src/internal-types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*/
15+
*
16+
* Copyright (c) 2025, Oracle and/or its affiliates.
17+
* */
1618

1719
import type * as oracledbTypes from 'oracledb';
1820
import type * as api from '@opentelemetry/api';

plugins/node/opentelemetry-instrumentation-oracledb/src/semconv.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*/
15+
*
16+
* Copyright (c) 2025, Oracle and/or its affiliates.
17+
* */
1618

1719
/**
1820
* The database management system (DBMS) product as identified

plugins/node/opentelemetry-instrumentation-oracledb/src/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*/
16-
15+
*
16+
* Copyright (c) 2025, Oracle and/or its affiliates.
17+
* */
1718
import type * as api from '@opentelemetry/api';
1819
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
1920

plugins/node/opentelemetry-instrumentation-oracledb/test/oracle.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*/
16-
15+
*
16+
* Copyright (c) 2025, Oracle and/or its affiliates.
17+
* */
1718
import {
1819
Attributes,
1920
SpanStatusCode,

0 commit comments

Comments
 (0)