> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langtrace.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Disable Tracing For Specific Vendors

You can disable tracing for any supported vendors by passing the `disable_instrumentations` parameter in `Langtrace.init` function. There are two ways to disable tracing for vendors. Either set `all_except` to disable all vendors except the ones specified or set `only` to disable only the vendors specified.

<Warning>
  Only one of `all_except` and `only` can be set in the
  `disable_instrumentations` object. Setting both of them will throw an
  error{' '}
</Warning>

1. Disable tracing for all vendors except the ones specified.

<CodeGroup>
  ```typescript Typescript SDK theme={null}
  import * as Langtrace from "@langtrase/typescript-sdk";
  Langtrace.init({
    write_spans_to_console: true,
    disable_instrumentations: { all_except: ['openai'] } // Disable all vendors except openai
  })
  ```

  ```python Python SDK theme={null}
  from langtrace_python_sdk import langtrace
  langtrace.init(disable_instrumentations={"all_except": ['openai'] }) # Disable all vendors except openai
  ```
</CodeGroup>

2. Disable tracing for only the vendors specified.

<CodeGroup>
  ```typescript Typescript SDK theme={null}
  import * as Langtrace from "@langtrase/typescript-sdk";
  Langtrace.init({
    write_spans_to_console: true,
    disable_instrumentations: { only: ['openai'] } // Disable only openai
  })
  ```

  ```python Python SDK theme={null}
  from langtrace_python_sdk import langtrace
  langtrace.init({"only": ['openai'] }) # Disable only openai
  ```
</CodeGroup>
