Skip to content

Commit 0fc9729

Browse files
authored
chore(ingest): add spy version (#42)
1 parent 857830e commit 0fc9729

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,12 @@ docker/manifest:
4646
--amend $(DOCKER_IMAGE):$(RELEASE_VERSION)-$(LIBC)-aarch64
4747
docker manifest push $(DOCKER_IMAGE):latest-$(LIBC)
4848

49+
50+
VERSION?=
51+
.phony: bump_version
52+
bump_version:
53+
sed -i "Pyroscope/Pyroscope/Pyroscope.csproj" -e "s/<PackageVersion>.*<\/PackageVersion>/<PackageVersion>$(VERSION)<\/PackageVersion>/"
54+
sed -i "Pyroscope/Pyroscope/Pyroscope.csproj" -e "s/<AssemblyVersion>.*<\/AssemblyVersion>/<AssemblyVersion>$(VERSION)<\/AssemblyVersion>/"
55+
sed -i "Pyroscope/Pyroscope/Pyroscope.csproj" -e "s/<FileVersion>.*<\/FileVersion>/<FileVersion>$(VERSION)<\/FileVersion>/"
56+
sed -i "profiler/src/ProfilerEngine/Datadog.Profiler.Native/PyroscopePprofSink.h" -e "s/#define PYROSCOPE_SPY_VERSION \".*\"/#define PYROSCOPE_SPY_VERSION \"$(VERSION)\"/"
57+

Pyroscope/Pyroscope/Pyroscope.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
8-
<PackageVersion>0.8.8</PackageVersion>
9-
<AssemblyVersion>0.8.8</AssemblyVersion>
10-
<FileVersion>0.8.8</FileVersion>
8+
<PackageVersion>0.8.9</PackageVersion>
9+
<AssemblyVersion>0.8.9</AssemblyVersion>
10+
<FileVersion>0.8.9</FileVersion>
1111
<LangVersion>10</LangVersion>
1212
</PropertyGroup>
1313

profiler/src/ProfilerEngine/Datadog.Profiler.Native/PyroscopePprofSink.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ void PyroscopePprofSink::upload(Pprof pprof, ProfileTime& startTime, ProfileTime
148148
.add_query("from", std::to_string(startTime.time_since_epoch().count()))
149149
.add_query("until", std::to_string(endTime.time_since_epoch().count()))
150150
.add_query("spyName", "dotnetspy")
151+
.add_query("spyVersion", PYROSCOPE_SPY_VERSION)
151152
.str();
152153

153154
httplib::Headers headers = getHeaders();

profiler/src/ProfilerEngine/Datadog.Profiler.Native/PyroscopePprofSink.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "LockingQueue.h"
1010
#include "httplib.h"
1111
#include "url.hpp"
12-
12+
#define PYROSCOPE_SPY_VERSION "0.8.9"
1313
class PyroscopePprofSink : public PProfExportSink
1414
{
1515
public:

0 commit comments

Comments
 (0)