Skip to content

Commit bcc4caa

Browse files
committed
format, fix missing param, clippy fix
1 parent d9cc608 commit bcc4caa

File tree

2 files changed

+163
-82
lines changed

2 files changed

+163
-82
lines changed

examples/cxx/profiling.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ int main() {
229229
Tag{.key = "export_id", .value = "12345"},
230230
Tag{.key = "host", .value = "example-host"}
231231
},
232+
// Process-level tags (comma-separated)
233+
"language:cpp,profiler_version:1.0,runtime:native",
232234
// Internal metadata (JSON string)
233235
R"({"profiler_version": "1.0", "custom_field": "demo"})",
234236
// System info (JSON string)
@@ -266,6 +268,8 @@ int main() {
266268
Tag{.key = "export_id", .value = "12345"},
267269
Tag{.key = "host", .value = "example-host"}
268270
},
271+
// Process-level tags (comma-separated)
272+
"language:cpp,profiler_version:1.0,runtime:native",
269273
// Internal metadata (JSON string)
270274
R"({"profiler_version": "1.0", "custom_field": "demo"})",
271275
// System info (JSON string)

0 commit comments

Comments
 (0)