Skip to content

Commit

Permalink
Un-indent end-of-note block (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw authored Apr 15, 2024
2 parents db24c32 + b975426 commit 1f9302e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/tracing/faq/logging_and_viewing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ Please follow the [Setup](/) guide to learn how to sign up and create an API key
By default, the traces will be logged to a project named `default`.
To log traces to a different project, see [this section](/tracing/faq/customizing_trace_attributes#logging-to-a-specific-project).
:::

:::note
Please make sure to set the `LANGCHAIN_API_KEY` environment variable to your API key before running the examples below.
Additionally, you will need to set `LANGCHAIN_TRACING_V2='true'` if you plan to use either:

- LangChain (Python or JS)
- `@traceable` decorator or `wrap_openai` method in the Python SDK
:::
:::

<CodeTabs
tabs={[
Expand Down Expand Up @@ -260,6 +261,7 @@ This works for the `traceable` decorator and `RunTree` objects.
LangSmith supports distributed tracing out of the box, linking runs within a trace across services using context propagation headers (`langsmith-trace` and optional `baggage` for metadata/tags).

Example client-server setup:

- Trace starts on client
- Continues on server

Expand Down Expand Up @@ -303,9 +305,6 @@ async def fake_route(request: Request):

```




### Turning off tracing

If you've decided you no longer want to trace your runs, you can remove the environment variables configured to start tracing in the first place.
Expand Down

0 comments on commit 1f9302e

Please sign in to comment.