Skip to content

Commit

Permalink
Lambda Layer Update - OTel JS 1.0.3 and 0.26.0 (#169)
Browse files Browse the repository at this point in the history
* Lambda Layer Update - OTel JS 1.0.3 and 0.26.0

* Use caret for deps bc 1.0+ means no breaking changes
  • Loading branch information
NathanielRN authored Oct 28, 2021
1 parent 4cd0321 commit e259611
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
46 changes: 23 additions & 23 deletions nodejs/packages/layer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,28 @@
"node": ">=10.0.0"
},
"dependencies": {
"@opentelemetry/api": "1.0.3",
"@opentelemetry/exporter-collector-proto": "^0.25.0",
"@opentelemetry/instrumentation": "^0.25.0",
"@opentelemetry/instrumentation-aws-lambda": "^0.26.0",
"@opentelemetry/instrumentation-dns": "^0.25.0",
"@opentelemetry/instrumentation-express": "^0.25.0",
"@opentelemetry/instrumentation-graphql": "^0.25.0",
"@opentelemetry/instrumentation-grpc": "^0.25.0",
"@opentelemetry/instrumentation-hapi": "^0.25.0",
"@opentelemetry/instrumentation-http": "^0.25.0",
"@opentelemetry/instrumentation-ioredis": "^0.25.0",
"@opentelemetry/instrumentation-koa": "^0.25.0",
"@opentelemetry/instrumentation-mongodb": "^0.25.0",
"@opentelemetry/instrumentation-mysql": "^0.25.0",
"@opentelemetry/instrumentation-net": "^0.25.0",
"@opentelemetry/instrumentation-pg": "^0.25.0",
"@opentelemetry/instrumentation-redis": "^0.25.0",
"@opentelemetry/sdk-trace-node": "^0.25.0",
"@opentelemetry/propagator-aws-xray": "^0.24.0",
"@opentelemetry/resource-detector-aws": "^0.24.0",
"@opentelemetry/resources": "^0.25.0",
"@opentelemetry/sdk-trace-base": "^0.25.0",
"opentelemetry-instrumentation-aws-sdk": "^0.25.0"
"@opentelemetry/api": "^1.0.3",
"@opentelemetry/exporter-otlp-proto": "^0.26.0",
"@opentelemetry/instrumentation": "^0.26.0",
"@opentelemetry/instrumentation-aws-lambda": "^0.27.0",
"@opentelemetry/instrumentation-aws-sdk": "^0.1.0",
"@opentelemetry/instrumentation-dns": "^0.26.0",
"@opentelemetry/instrumentation-express": "^0.26.0",
"@opentelemetry/instrumentation-graphql": "^0.26.0",
"@opentelemetry/instrumentation-grpc": "^0.26.0",
"@opentelemetry/instrumentation-hapi": "^0.26.0",
"@opentelemetry/instrumentation-http": "^0.26.0",
"@opentelemetry/instrumentation-ioredis": "^0.26.0",
"@opentelemetry/instrumentation-koa": "^0.26.0",
"@opentelemetry/instrumentation-mongodb": "^0.26.0",
"@opentelemetry/instrumentation-mysql": "^0.26.0",
"@opentelemetry/instrumentation-net": "^0.26.0",
"@opentelemetry/instrumentation-pg": "^0.26.0",
"@opentelemetry/instrumentation-redis": "^0.26.0",
"@opentelemetry/propagator-aws-xray": "^1.0.0",
"@opentelemetry/resource-detector-aws": "^1.0.0",
"@opentelemetry/resources": "^1.0.0",
"@opentelemetry/sdk-trace-base": "^1.0.0",
"@opentelemetry/sdk-trace-node": "^1.0.0"
}
}
6 changes: 3 additions & 3 deletions nodejs/packages/layer/src/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ const { NetInstrumentation } = require('@opentelemetry/instrumentation-net');
const { PgInstrumentation } = require('@opentelemetry/instrumentation-pg');
const { RedisInstrumentation } = require('@opentelemetry/instrumentation-redis');
import { registerInstrumentations } from '@opentelemetry/instrumentation';
import { CollectorTraceExporter } from '@opentelemetry/exporter-collector-proto';
import { OTLPTraceExporter } from '@opentelemetry/exporter-otlp-proto';
import { awsLambdaDetector } from '@opentelemetry/resource-detector-aws';
import {
detectResources,
envDetector,
processDetector,
} from '@opentelemetry/resources';
import { AwsInstrumentation } from 'opentelemetry-instrumentation-aws-sdk';
import { AwsInstrumentation } from '@opentelemetry/instrumentation-aws-sdk';

declare global {
function configureTracer(defaultConfig: NodeTracerConfig): NodeTracerConfig;
Expand Down Expand Up @@ -78,7 +78,7 @@ async function initializeProvider() {

const tracerProvider = new NodeTracerProvider(config);
tracerProvider.addSpanProcessor(
new BatchSpanProcessor(new CollectorTraceExporter())
new BatchSpanProcessor(new OTLPTraceExporter())
);

let sdkRegistrationConfig: SDKRegistrationConfig = {};
Expand Down

0 comments on commit e259611

Please sign in to comment.