Skip to content

Commit 0e0799a

Browse files
authored
Merge branch 'master' into unix-socket-memcache-fix
2 parents 7209500 + b36dbac commit 0e0799a

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

‎CHANGELOG.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ endif::[]
4141
[float]
4242
===== Bug fixes
4343
44-
* Ensure that Prometheus histograms are encoded correctly for APM Server {pull}1354[#1354]
45-
* Fix structlog processor to correctly populate ECS-compatible `event.dataset` {pull}1352[#1352]
44+
* Ensure that Prometheus histograms are encoded correctly for APM Server {pull}1354[#1354]
45+
* Remove problematic (and duplicate) `event.dataset` from logging integrations {pull}1365[#1365]
4646
4747
[[release-notes-6.x]]
4848
=== Python Agent version 6.x

‎elasticapm/handlers/logging.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,12 @@ def _add_attributes_to_log_record(record):
231231
client = get_client()
232232
service_name = client.config.service_name if client else None
233233
record.elasticapm_service_name = service_name
234-
event_dataset = f"{client.config.service_name}" if client else None
235-
record.elasticapm_event_dataset = event_dataset
236234

237235
record.elasticapm_labels = {
238236
"transaction.id": transaction_id,
239237
"trace.id": trace_id,
240238
"span.id": span_id,
241239
"service.name": service_name,
242-
"event.dataset": event_dataset,
243240
}
244241

245242
return record

‎elasticapm/handlers/structlog.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def structlog_processor(logger, method_name, event_dict):
5757
client = get_client()
5858
if client:
5959
event_dict["service.name"] = client.config.service_name
60-
event_dict["event"] = {"dataset": f"{client.config.service_name}"}
6160
if transaction and transaction.trace_parent:
6261
event_dict["trace.id"] = transaction.trace_parent.trace_id
6362
span = execution_context.get_span()

‎tests/handlers/logging/logging_tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ def test_structlog_processor_no_span(elasticapm_client):
269269
new_dict = structlog_processor(None, None, event_dict)
270270
assert new_dict["transaction.id"] == transaction.id
271271
assert new_dict["trace.id"] == transaction.trace_parent.trace_id
272-
assert new_dict["event"]["dataset"] == "myapp"
273272
assert "span.id" not in new_dict
274273

275274

0 commit comments

Comments
 (0)