Posts

Showing posts from November, 2019

DotNet Core NewRelic Integration

Image
Prerequisites docker vscode vscode plugin: Docker already have created a dotnet core application already have a Dockerfile Add the newrelic agent to the docker image Add these sections to your Dockerfile , directly after the FROM base AS final . Install the agent RUN apt - get update && apt - get install - y wget ca - certificates gnupg \ && echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | tee /etc/apt/sources.list.d/newrelic.list \ && wget https : //download.newrelic.com/548C16BF.gpg \ && apt - key add 548C16BF.gpg \ && apt - get update \ && apt - get install - y newrelic - netcore20 - agent Enable the Nuget agent ENV CORECLR_ENABLE_PROFILING=1 \ CORECLR_PROFILER= { 36032161 - FFC0 - 4B61 - B559 - F6C5D41BAE5A } \ CORECLR_NEWRELIC_HOME=/usr/local/newrelic - netcore20 - agent \ CORECLR_PROFILER_PATH=/usr/local/newrelic - netcore20 - agent/libNewRelicProfiler.so \ NEW_RELIC_LICENSE_KEY=REPLACE_THIS_W...