Skip to content

Envoy のトレース情報を OpenTelemtry 形式で New Relic に転送するためのサンプルリポジトリ

Notifications You must be signed in to change notification settings

newrelickk/envoy-otel-example

Repository files navigation

envoy-otel-example

This repository will be used to transfer Envoy's Trace information to New Relic.

The code base is based on envoy's example.

Setup

Get New Relic LicenseKey

Replace api-key header value

# otel-collector-config.yaml

exporters:
  otlp:
    endpoint: "https://otlp.nr-data.net:4317" #US endpoint
    headers:
      api-key: "<set your license key>" → your key

Run

 docker compose up --build

Make Request

request to service 1

This will be routed via 2 of the Envoy proxies:

  • front-proxy

  • envoy-1

curl localhost:10000/trace/1

request to service 2

This will be routed via all 3 of the Envoy proxies:

  • front-proxy

  • envoy-1

  • envoy-2

curl localhost:10000/trace/2

Check New Relic UI

Screen Shot 2022-11-28 at 14 42 35

About

Envoy のトレース情報を OpenTelemtry 形式で New Relic に転送するためのサンプルリポジトリ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published