Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ endif::[]
// When the next release happens, nest these changes under the "Python Agent version 6.x" heading
[float]
===== Features

* Implement instrumentation of Azure Functions {pull}1766[#1766]
* Add `transport_json_serializer` configuration option {pull}1777[#1777]

[float]
===== Bug fixes
Expand Down
3 changes: 3 additions & 0 deletions elasticapm/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ def __init__(self, config=None, **inline):
"timeout": self.config.server_timeout,
"processors": self.load_processors(),
}
if config.transport_json_serializer:
transport_kwargs["json_serializer"] = config.transport_json_serializer

self._api_endpoint_url = urllib.parse.urljoin(
self.config.server_url if self.config.server_url.endswith("/") else self.config.server_url + "/",
constants.EVENTS_API_PATH,
Expand Down
1 change: 1 addition & 0 deletions elasticapm/conf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ class Config(_ConfigBase):
)
service_node_name = _ConfigValue("SERVICE_NODE_NAME")
environment = _ConfigValue("ENVIRONMENT")
transport_json_serializer = _ConfigValue("TRANSPORT_JSON_SERIALIZER")
secret_token = _ConfigValue("SECRET_TOKEN")
api_key = _ConfigValue("API_KEY")
debug = _BoolConfigValue("DEBUG", default=False)
Expand Down