Skip to content

Commit

Permalink
setup exporter as creating executor. Then we could skip setup in many…
Browse files Browse the repository at this point in the history
… positions.

And remove setup for process pool
  • Loading branch information
robbenwang committed Mar 27, 2024
1 parent 5c0779d commit ba763bf
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -696,11 +696,6 @@ def _process_wrapper(
bulk_logger.info("Current thread is not main thread, skip signal handler registration in batch process pool.")
OperationContext.get_instance().update(operation_contexts_dict) # Update the operation context for the new process.

# set up OpenTelemetry exporter in process who executes the line
from promptflow.tracing._start_trace import setup_exporter_from_environ

setup_exporter_from_environ()

_exec_line_for_queue(
executor_creation_func,
output_dir,
Expand Down

0 comments on commit ba763bf

Please sign in to comment.