File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ use std::collections::HashMap;
22use pyroscope:: { pyroscope:: PyroscopeAgentRunning , PyroscopeAgent } ;
33use pyroscope_pyspy:: { pyspy_backend, PyspyConfig } ;
44use pyroscope_rbspy:: { rbspy_backend, RbspyConfig } ;
5+ use pyroscope:: pyroscope:: ReportEncoding ;
56
67use crate :: utils:: {
78 app_config:: AppConfig ,
@@ -67,6 +68,7 @@ impl Profiler {
6768 let mut builder = PyroscopeAgent :: default_builder ( ) ;
6869 builder = builder. url ( server_address) ;
6970 builder = builder. application_name ( app_name) ;
71+ builder = builder. report_encoding ( ReportEncoding :: PPROF ) ;
7072 if tenant_id != "" {
7173 builder = builder. tenant_id ( tenant_id) ;
7274 }
@@ -94,6 +96,7 @@ impl Profiler {
9496 let mut builder = PyroscopeAgent :: default_builder ( ) ;
9597 builder = builder. url ( server_address) ;
9698 builder = builder. application_name ( app_name) ;
99+ builder = builder. report_encoding ( ReportEncoding :: PPROF ) ;
97100 if tenant_id != "" {
98101 builder = builder. tenant_id ( tenant_id) ;
99102 }
Original file line number Diff line number Diff line change 11use ffikit:: Signal ;
22use pyroscope:: backend:: Tag ;
33use pyroscope:: PyroscopeAgent ;
4+ use pyroscope:: pyroscope:: ReportEncoding ;
45use pyroscope_pyspy:: { pyspy_backend, PyspyConfig } ;
56use std:: collections:: hash_map:: DefaultHasher ;
67use std:: ffi:: CStr ;
@@ -143,6 +144,7 @@ pub extern "C" fn initialize_agent(
143144
144145 // Create the Pyroscope Agent.
145146 let mut agent_builder = PyroscopeAgent :: builder ( server_address, application_name)
147+ . report_encoding ( ReportEncoding :: PPROF )
146148 . backend ( pyspy)
147149 . tags ( tags) ;
148150
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ pub extern "C" fn initialize_agent(
206206 . backend ( rbspy)
207207 . func ( transform_report)
208208 . tags ( tags)
209- . report_encoding ( report_encoding ) ;
209+ . report_encoding ( ReportEncoding :: PPROF ) ;
210210
211211 if auth_token != "" {
212212 agent_builder = agent_builder. auth_token ( auth_token) ;
You can’t perform that action at this time.
0 commit comments