importlogfirelogfire.configure(code_source=logfire.CodeSource(repository='https://github.com/pydantic/logfire',revision='<hash of commit used on release>',root_path='path/within/repo',))
For other OpenTelemetry SDKs, you can configure these settings using resource attributes, e.g. by setting the
OTEL_RESOURCE_ATTRIBUTES environment variable: