Skip to content

Commit dd3dba2

Browse files
committed
fix: exporter FFI example
1 parent d8ebd76 commit dd3dba2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/ffi/exporter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ int main(int argc, char *argv[]) {
8787
return 1;
8888
}
8989

90+
auto compression = DDOG_PROF_UPLOAD_COMPRESSION_ON;
9091
ddog_prof_Profile_SerializeResult serialize_result =
91-
ddog_prof_Profile_serialize(profile.get(), nullptr, nullptr);
92+
ddog_prof_Profile_serialize(profile.get(), nullptr, nullptr, compression);
9293
if (serialize_result.tag == DDOG_PROF_PROFILE_SERIALIZE_RESULT_ERR) {
9394
print_error("Failed to serialize profile: ", serialize_result.err);
9495
ddog_Error_drop(&serialize_result.err);

0 commit comments

Comments
 (0)