File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ def init(
6868 api_host : Optional [str ] = LANGTRACE_REMOTE_URL ,
6969 disable_instrumentations : Optional [DisableInstrumentations ] = None ,
7070 disable_tracing_for_functions : Optional [InstrumentationMethods ] = None ,
71+ service_name : Optional [str ] = None ,
7172):
7273
7374 host = (
@@ -77,7 +78,7 @@ def init(
7778 print (Fore .GREEN + "Initializing Langtrace SDK.." + Fore .RESET )
7879 sampler = LangtraceSampler (disabled_methods = disable_tracing_for_functions )
7980 provider = TracerProvider (
80- resource = Resource .create ({"service.name" : sys .argv [0 ]}),
81+ resource = Resource .create ({"service.name" : service_name or sys .argv [0 ]}),
8182 sampler = sampler ,
8283 )
8384
Original file line number Diff line number Diff line change 1- __version__ = "2.1.28 "
1+ __version__ = "2.1.29 "
You can’t perform that action at this time.
0 commit comments