From a0efc23caab7029724c09097fbdea1b63b0ed1b8 Mon Sep 17 00:00:00 2001 From: Amir Blum Date: Sun, 11 Aug 2024 10:51:55 +0300 Subject: [PATCH] chore: use otlp http for nodejs --- Dockerfile | 2 +- odiglet/pkg/instrumentation/instrumentlang/nodejs.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6345d8597..574fb5f29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM golang:1.22 as builder +FROM --platform=$BUILDPLATFORM golang:1.22 AS builder ARG SERVICE_NAME # Copyy local modules required by the build diff --git a/odiglet/pkg/instrumentation/instrumentlang/nodejs.go b/odiglet/pkg/instrumentation/instrumentlang/nodejs.go index 0ba032b08..8fbe09f3e 100644 --- a/odiglet/pkg/instrumentation/instrumentlang/nodejs.go +++ b/odiglet/pkg/instrumentation/instrumentlang/nodejs.go @@ -20,7 +20,7 @@ const ( ) func NodeJS(deviceId string, uniqueDestinationSignals map[common.ObservabilitySignal]struct{}) *v1beta1.ContainerAllocateResponse { - otlpEndpoint := fmt.Sprintf("http://%s:%d", env.Current.NodeIP, consts.OTLPPort) + otlpEndpoint := fmt.Sprintf("http://%s:%d", env.Current.NodeIP, consts.OTLPHttpPort) nodeOptionsVal, _ := envOverwrite.ValToAppend(nodeEnvNodeOptions, common.OtelSdkNativeCommunity) opampServerHost := fmt.Sprintf("%s:%d", env.Current.NodeIP, consts.OpAMPPort)