diff --git a/ddtrace/profiling/exporter/http.py b/ddtrace/profiling/exporter/http.py index 7015082555a..c4809e044ac 100644 --- a/ddtrace/profiling/exporter/http.py +++ b/ddtrace/profiling/exporter/http.py @@ -152,7 +152,7 @@ def _get_tags( tags.update(self.tags) - return ",".join(tag + ":" + value for tag, value in tags.items()) + return ",".join(f"{tag}:{value}" for tag, value in tags.items()) def export( self, diff --git a/releasenotes/notes/fix-profiling-exporter-tags-f19c6cf93cbe1502.yaml b/releasenotes/notes/fix-profiling-exporter-tags-f19c6cf93cbe1502.yaml new file mode 100644 index 00000000000..858e09be12e --- /dev/null +++ b/releasenotes/notes/fix-profiling-exporter-tags-f19c6cf93cbe1502.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + profiling: fix a bug that caused the HTTP exporter to crash when attempting to serialize tags.