Skip to content

Commit

Permalink
pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmojaki committed Nov 4, 2024
1 parent 1989bab commit 26b7cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logfire/_internal/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _instrument_span_with_args(
try:
msg_template: str = attributes[ATTRIBUTES_MESSAGE_TEMPLATE_KEY] # type: ignore
attributes[ATTRIBUTES_MESSAGE_KEY] = logfire_format(msg_template, function_args, self._config.scrubber)
if json_schema_properties := attributes_json_schema_properties(function_args):
if json_schema_properties := attributes_json_schema_properties(function_args): # pragma: no branch
attributes[ATTRIBUTES_JSON_SCHEMA_KEY] = attributes_json_schema(json_schema_properties)
attributes.update(user_attributes(function_args))
return self._fast_span(name, attributes)
Expand Down

0 comments on commit 26b7cdc

Please sign in to comment.