From 77ea6632e28ac78b6aae019a4f723a80dd2d2a4c Mon Sep 17 00:00:00 2001 From: Young Bu Park Date: Fri, 1 May 2020 09:26:39 -0700 Subject: [PATCH] update localforwarder versions (#556) Co-authored-by: Aman Bhardwaj --- howto/diagnose-with-tracing/azure-monitor.md | 8 ++++---- howto/diagnose-with-tracing/localforwarder/Dockerfile | 8 -------- .../localforwarder/dapr-localforwarder.yaml | 2 +- 3 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 howto/diagnose-with-tracing/localforwarder/Dockerfile diff --git a/howto/diagnose-with-tracing/azure-monitor.md b/howto/diagnose-with-tracing/azure-monitor.md index 72adcdbf1..aee460e0f 100644 --- a/howto/diagnose-with-tracing/azure-monitor.md +++ b/howto/diagnose-with-tracing/azure-monitor.md @@ -5,8 +5,8 @@ Dapr integrates with Application Insights through OpenTelemetry's default export > Note: The local forwarder is still under preview, but being deprecated. The Application Insights team recommends using [Opentelemetry collector](https://github.com/open-telemetry/opentelemetry-collector) (which is in alpha state) for the future so we're working on moving from local forwarder to [Opentelemetry collector](https://github.com/open-telemetry/opentelemetry-collector). -- [How to configure distributed tracing with Application insights](#How-to-configure-distributed-tracing-with-Application-insights) -- [Tracing configuration](#Tracing-configuration) + - [How to configure distributed tracing with Application insights](#How-to-configure-distributed-tracing-with-Application-insights) + - [Tracing configuration](#Tracing-configuration) ## How to configure distributed tracing with Application insights @@ -33,10 +33,10 @@ This is for running the local forwarder on your machine. 1. Run the local fowarder ```bash -docker run -e APPINSIGHTS_INSTRUMENTATIONKEY= -e APPINSIGHTS_LIVEMETRICSSTREAMAUTHENTICATIONAPIKEY= -d -p 55678:55678 daprio/dapr-localforwarder:0.1-beta1 +docker run -e APPINSIGHTS_INSTRUMENTATIONKEY= -e APPINSIGHTS_LIVEMETRICSSTREAMAUTHENTICATIONAPIKEY= -d -p 55678:55678 daprio/dapr-localforwarder:latest ``` -> Note: dapr-localforwarder is created by using [0.1-beta1 release](https://github.com/microsoft/ApplicationInsights-LocalForwarder/releases/tag/v0.1-beta1). If you want to create your own image, use [this dockerfile](./localforwarder/Dockerfile). +> Note: [dapr-localforwarder](https://github.com/dapr/ApplicationInsights-LocalForwarder) is the forked version of [ApplicationInsights Localforwarder](https://github.com/microsoft/ApplicationInsights-LocalForwarder/), that includes the minor changes for Dapr. We're working on migrating to [opentelemetry-sdk and opentelemetry collector](https://opentelemetry.io/). 1. Create the following YAML files. Copy the native.yaml component file and tracing.yaml configuration file to the *components/* sub-folder under the same folder where you run your application. diff --git a/howto/diagnose-with-tracing/localforwarder/Dockerfile b/howto/diagnose-with-tracing/localforwarder/Dockerfile deleted file mode 100644 index ffce37e65..000000000 --- a/howto/diagnose-with-tracing/localforwarder/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM mcr.microsoft.com/dotnet/core/runtime:2.1 -RUN mkdir /lf -WORKDIR /lf -RUN curl -LsO https://github.com/microsoft/ApplicationInsights-LocalForwarder/releases/download/v0.1-beta1/LF-ConsoleHost-linux-x64.tar.gz -RUN tar xzf LF-ConsoleHost-linux-x64.tar.gz -RUN rm -f LF-ConsoleHost-linux-x64.tar.gz -EXPOSE 55678 -ENTRYPOINT ["/lf/Microsoft.LocalForwarder.ConsoleHost", "noninteractive"] diff --git a/howto/diagnose-with-tracing/localforwarder/dapr-localforwarder.yaml b/howto/diagnose-with-tracing/localforwarder/dapr-localforwarder.yaml index 58cad087e..6109ec10a 100644 --- a/howto/diagnose-with-tracing/localforwarder/dapr-localforwarder.yaml +++ b/howto/diagnose-with-tracing/localforwarder/dapr-localforwarder.yaml @@ -31,7 +31,7 @@ spec: spec: containers: - name: dapr-localforwarder - image: docker.io/daprio/dapr-localforwarder:0.1-beta1 + image: docker.io/daprio/dapr-localforwarder:latest ports: - containerPort: 55678 imagePullPolicy: Always