Skip to content

Commit c856e49

Browse files
fix: use slugged name for environment section
1 parent 21620e3 commit c856e49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/include/measurement.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ inline void measurement_set_metadata() {
3838

3939
// Report C++ toolchain information
4040
#ifdef CODSPEED_CXX_COMPILER_ID
41-
instrument_hooks_set_environment(g_hooks, "C++ Compiler", "compiler_id",
41+
instrument_hooks_set_environment(g_hooks, "cpp", "compiler_id",
4242
CODSPEED_CXX_COMPILER_ID);
4343
#endif
4444
#ifdef CODSPEED_CXX_COMPILER_VERSION
45-
instrument_hooks_set_environment(g_hooks, "C++ Compiler", "version",
45+
instrument_hooks_set_environment(g_hooks, "cpp", "version",
4646
CODSPEED_CXX_COMPILER_VERSION);
4747
#endif
4848
#ifdef CODSPEED_CXX_COMPILER_FULL_VERSION
49-
instrument_hooks_set_environment(g_hooks, "C++ Compiler", "build",
49+
instrument_hooks_set_environment(g_hooks, "cpp", "build",
5050
CODSPEED_CXX_COMPILER_FULL_VERSION);
5151
#endif
5252
#ifdef CODSPEED_BUILD_TYPE
53-
instrument_hooks_set_environment(g_hooks, "C++ Compiler", "build_type",
53+
instrument_hooks_set_environment(g_hooks, "cpp", "build_type",
5454
CODSPEED_BUILD_TYPE);
5555
#endif
5656
instrument_hooks_write_environment(g_hooks, static_cast<uint32_t>(getpid()));

0 commit comments

Comments
 (0)