From 70e231beacea9d97830262adf8bd3f9825b71de6 Mon Sep 17 00:00:00 2001 From: Pyroscope Bot Date: Thu, 29 May 2025 08:31:23 +0000 Subject: [PATCH] chore(examples): update examples --- docs/sources/configure-client/language-sdks/dotnet.md | 6 +++--- .../dotnet/fast-slow/Dockerfile | 4 ++-- .../dotnet/fast-slow/musl.Dockerfile | 4 ++-- .../dotnet/rideshare/Dockerfile | 2 +- .../dotnet/rideshare/musl.Dockerfile | 2 +- .../language-sdk-instrumentation/dotnet/web-new/Dockerfile | 4 ++-- .../golang-push/rideshare/go.sum | 2 ++ 7 files changed, 13 insertions(+), 11 deletions(-) diff --git a/docs/sources/configure-client/language-sdks/dotnet.md b/docs/sources/configure-client/language-sdks/dotnet.md index e1046fe0a8..de6e55f3bc 100644 --- a/docs/sources/configure-client/language-sdks/dotnet.md +++ b/docs/sources/configure-client/language-sdks/dotnet.md @@ -45,13 +45,13 @@ The Pyroscope server can be a local server for development or a remote server fo 1. Obtain `Pyroscope.Profiler.Native.so` and `Pyroscope.Linux.ApiWrapper.x64.so` from the [latest tarball](https://github.com/pyroscope-io/pyroscope-dotnet/releases/): ```bash -curl -s -L https://github.com/grafana/pyroscope-dotnet/releases/download/v0.9.4-pyroscope/pyroscope.0.9.4-glibc-x86_64.tar.gz | tar xvz -C . +curl -s -L https://github.com/grafana/pyroscope-dotnet/releases/download/v0.10.0-pyroscope/pyroscope.0.10.0-glibc-x86_64.tar.gz | tar xvz -C . ``` Or copy them from the [latest docker image](https://hub.docker.com/r/pyroscope/pyroscope-dotnet/tags). We have `glibc` and `musl` versions: ```dockerfile -COPY --from=pyroscope/pyroscope-dotnet:0.9.4-glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so -COPY --from=pyroscope/pyroscope-dotnet:0.9.4-glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so +COPY --from=pyroscope/pyroscope-dotnet:0.10.0-glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so +COPY --from=pyroscope/pyroscope-dotnet:0.10.0-glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so ```` 2. Set the following required environment variables to enable profiler diff --git a/examples/language-sdk-instrumentation/dotnet/fast-slow/Dockerfile b/examples/language-sdk-instrumentation/dotnet/fast-slow/Dockerfile index f19d33cb70..e7debad2ed 100644 --- a/examples/language-sdk-instrumentation/dotnet/fast-slow/Dockerfile +++ b/examples/language-sdk-instrumentation/dotnet/fast-slow/Dockerfile @@ -2,8 +2,8 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0 WORKDIR /dotnet -COPY --from=pyroscope/pyroscope-dotnet:0.9.4-glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so -COPY --from=pyroscope/pyroscope-dotnet:0.9.4-glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so +COPY --from=pyroscope/pyroscope-dotnet:0.10.0-glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so +COPY --from=pyroscope/pyroscope-dotnet:0.10.0-glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so ADD example . diff --git a/examples/language-sdk-instrumentation/dotnet/fast-slow/musl.Dockerfile b/examples/language-sdk-instrumentation/dotnet/fast-slow/musl.Dockerfile index 2e7de8b8f6..1cd26efe75 100644 --- a/examples/language-sdk-instrumentation/dotnet/fast-slow/musl.Dockerfile +++ b/examples/language-sdk-instrumentation/dotnet/fast-slow/musl.Dockerfile @@ -2,8 +2,8 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine WORKDIR /dotnet -COPY --from=pyroscope/pyroscope-dotnet:0.9.4-musl /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so -COPY --from=pyroscope/pyroscope-dotnet:0.9.4-musl /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so +COPY --from=pyroscope/pyroscope-dotnet:0.10.0-musl /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so +COPY --from=pyroscope/pyroscope-dotnet:0.10.0-musl /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so ADD example . diff --git a/examples/language-sdk-instrumentation/dotnet/rideshare/Dockerfile b/examples/language-sdk-instrumentation/dotnet/rideshare/Dockerfile index 86bbfd265d..00babe008d 100644 --- a/examples/language-sdk-instrumentation/dotnet/rideshare/Dockerfile +++ b/examples/language-sdk-instrumentation/dotnet/rideshare/Dockerfile @@ -17,7 +17,7 @@ RUN sed -i -E 's|.*|net'$SDK RUN dotnet publish -o . --framework net$SDK_VERSION --runtime linux-x64 --no-self-contained # This fetches the SDK -FROM --platform=linux/amd64 pyroscope/pyroscope-dotnet:0.9.4-glibc AS sdk +FROM --platform=linux/amd64 pyroscope/pyroscope-dotnet:0.10.0-glibc AS sdk # Runtime only image of the targetplatfrom, so the platform the image will be running on. FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/aspnet:$SDK_VERSION diff --git a/examples/language-sdk-instrumentation/dotnet/rideshare/musl.Dockerfile b/examples/language-sdk-instrumentation/dotnet/rideshare/musl.Dockerfile index 1328066cda..4d00095e21 100644 --- a/examples/language-sdk-instrumentation/dotnet/rideshare/musl.Dockerfile +++ b/examples/language-sdk-instrumentation/dotnet/rideshare/musl.Dockerfile @@ -17,7 +17,7 @@ RUN sed -i -E 's|.*|net'$SDK RUN dotnet publish -o . --framework net$SDK_VERSION --runtime linux-musl-x64 --no-self-contained # This fetches the SDK -FROM --platform=linux/amd64 pyroscope/pyroscope-dotnet:0.9.4-musl AS sdk +FROM --platform=linux/amd64 pyroscope/pyroscope-dotnet:0.10.0-musl AS sdk # Runtime only image of the targetplatfrom, so the platform the image will be running on. FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/aspnet:$SDK_VERSION-alpine diff --git a/examples/language-sdk-instrumentation/dotnet/web-new/Dockerfile b/examples/language-sdk-instrumentation/dotnet/web-new/Dockerfile index 159575f5ec..f9cd1eff62 100644 --- a/examples/language-sdk-instrumentation/dotnet/web-new/Dockerfile +++ b/examples/language-sdk-instrumentation/dotnet/web-new/Dockerfile @@ -3,8 +3,8 @@ FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/sdk:6.0 WORKDIR /dotnet -COPY --from=pyroscope/pyroscope-dotnet:0.9.4-glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so -COPY --from=pyroscope/pyroscope-dotnet:0.9.4-glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so +COPY --from=pyroscope/pyroscope-dotnet:0.10.0-glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so +COPY --from=pyroscope/pyroscope-dotnet:0.10.0-glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so ADD example . diff --git a/examples/language-sdk-instrumentation/golang-push/rideshare/go.sum b/examples/language-sdk-instrumentation/golang-push/rideshare/go.sum index ef20b05010..d374f34211 100644 --- a/examples/language-sdk-instrumentation/golang-push/rideshare/go.sum +++ b/examples/language-sdk-instrumentation/golang-push/rideshare/go.sum @@ -31,6 +31,8 @@ github.com/grpc-ecosystem/grpc-gateway/v2 v2.23.0 h1:ad0vkEBuk23VJzZR9nkLVG0YAoN github.com/grpc-ecosystem/grpc-gateway/v2 v2.23.0/go.mod h1:igFoXX2ELCW06bol23DWPB5BEWfZISOzSP5K2sbLea0= github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc= github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= +github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=