File tree 7 files changed +12
-12
lines changed
docs/sources/configure-client/language-sdks
examples/language-sdk-instrumentation/dotnet
7 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ The Pyroscope server can be a local server for development or a remote server fo
45
45
1 . Obtain ` Pyroscope.Profiler.Native.so ` and ` Pyroscope.Linux.ApiWrapper.x64.so ` from the [ latest tarball] ( https://github.com/pyroscope-io/pyroscope-dotnet/releases/ ) :
46
46
47
47
``` bash
48
- curl -s -L https://github.com/grafana/pyroscope-dotnet/releases/download/v0.9.2 -pyroscope/pyroscope.0.9.2 -glibc-x86_64.tar.gz | tar xvz -C .
48
+ 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 .
49
49
```
50
50
51
51
Or copy them from the [ latest docker image] ( https://hub.docker.com/r/pyroscope/pyroscope-dotnet/tags ) . We have ` glibc ` and ` musl ` versions:
52
52
``` dockerfile
53
- COPY --from=pyroscope/pyroscope-dotnet:0.9.2 -glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
54
- COPY --from=pyroscope/pyroscope-dotnet:0.9.2 -glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
53
+ COPY --from=pyroscope/pyroscope-dotnet:0.9.4 -glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
54
+ COPY --from=pyroscope/pyroscope-dotnet:0.9.4 -glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
55
55
````
56
56
57
57
2. Set the following required environment variables to enable profiler
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0
2
2
3
3
WORKDIR /dotnet
4
4
5
- COPY --from=pyroscope/pyroscope-dotnet:0.9.2 -glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
6
- COPY --from=pyroscope/pyroscope-dotnet:0.9.2 -glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
5
+ COPY --from=pyroscope/pyroscope-dotnet:0.9.4 -glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
6
+ COPY --from=pyroscope/pyroscope-dotnet:0.9.4 -glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
7
7
8
8
ADD example .
9
9
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine
2
2
3
3
WORKDIR /dotnet
4
4
5
- COPY --from=pyroscope/pyroscope-dotnet:0.9.2 -musl /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
6
- COPY --from=pyroscope/pyroscope-dotnet:0.9.2 -musl /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
5
+ COPY --from=pyroscope/pyroscope-dotnet:0.9.4 -musl /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
6
+ COPY --from=pyroscope/pyroscope-dotnet:0.9.4 -musl /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
7
7
8
8
ADD example .
9
9
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ RUN sed -i -E 's|<TargetFramework>.*</TargetFramework>|<TargetFramework>net'$SDK
17
17
RUN dotnet publish -o . --framework net$SDK_VERSION --runtime linux-x64 --no-self-contained
18
18
19
19
# This fetches the SDK
20
- FROM --platform=linux/amd64 pyroscope/pyroscope-dotnet:0.9.2 -glibc AS sdk
20
+ FROM --platform=linux/amd64 pyroscope/pyroscope-dotnet:0.9.4 -glibc AS sdk
21
21
22
22
# Runtime only image of the targetplatfrom, so the platform the image will be running on.
23
23
FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/aspnet:$SDK_VERSION
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ RUN sed -i -E 's|<TargetFramework>.*</TargetFramework>|<TargetFramework>net'$SDK
17
17
RUN dotnet publish -o . --framework net$SDK_VERSION --runtime linux-musl-x64 --no-self-contained
18
18
19
19
# This fetches the SDK
20
- FROM --platform=linux/amd64 pyroscope/pyroscope-dotnet:0.9.2 -musl AS sdk
20
+ FROM --platform=linux/amd64 pyroscope/pyroscope-dotnet:0.9.4 -musl AS sdk
21
21
22
22
# Runtime only image of the targetplatfrom, so the platform the image will be running on.
23
23
FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/aspnet:$SDK_VERSION-alpine
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/sdk:6.0
3
3
4
4
WORKDIR /dotnet
5
5
6
- COPY --from=pyroscope/pyroscope-dotnet:0.9.2 -glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
7
- COPY --from=pyroscope/pyroscope-dotnet:0.9.2 -glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
6
+ COPY --from=pyroscope/pyroscope-dotnet:0.9.4 -glibc /Pyroscope.Profiler.Native.so ./Pyroscope.Profiler.Native.so
7
+ COPY --from=pyroscope/pyroscope-dotnet:0.9.4 -glibc /Pyroscope.Linux.ApiWrapper.x64.so ./Pyroscope.Linux.ApiWrapper.x64.so
8
8
9
9
ADD example .
10
10
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ func extractRSVersion(module string) func(tag Tag) *version {
228
228
229
229
func extractDotnetVersion () func (tag Tag ) * version {
230
230
return func (tag Tag ) * version {
231
- re := regexp .MustCompile (`v(\d+).(\d+).(\d+)-pyroscope ` )
231
+ re := regexp .MustCompile (`v(\d+).(\d+).(\d+)$ ` )
232
232
match := re .FindStringSubmatch (tag .Name )
233
233
if match != nil {
234
234
fmt .Println (len (match ), match )
You can’t perform that action at this time.
0 commit comments