Skip to content

Commit 1be0aa2

Browse files
Code cleanup
1 parent 155ec9c commit 1be0aa2

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/main/java/io/jenkins/plugins/opentelemetry/backend/elastic/ElasticsearchLogStorageRetriever.java

-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ public LogsQueryResult overallLog(
136136
context = new ElasticsearchSearchContext();
137137
session.setAttribute(runIdentifier.getId(), context);
138138
spanBuilder.setAttribute("elasticsearchSearchContext", "new");
139-
spanBuilder.setAttribute("elasticsearchSearchContext.identityHashCode", System.identityHashCode(context));
140139
}
141140
} else {
142141
if (complete) {
@@ -145,7 +144,6 @@ public LogsQueryResult overallLog(
145144
} else {
146145
spanBuilder.setAttribute("elasticsearchSearchContext", "reuse");
147146
}
148-
spanBuilder.setAttribute("elasticsearchSearchContext.identityHashCode", System.identityHashCode(context));
149147
spanBuilder.setAttribute("from", context.from);
150148
}
151149
Span span = spanBuilder

src/main/java/io/jenkins/plugins/opentelemetry/backend/elastic/ElasticsearchLogsSearchIterator.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ protected Iterator<String> loadNextFormattedLogLines() throws IOException {
193193
.setAttribute("query.size", PAGE_SIZE)
194194
.setAttribute("query.match.traceId", traceId)
195195
.setAttribute("query.match.jobFullName", jobFullName)
196-
.setAttribute("query.match.runNumber", runNumber)
197-
.setAttribute("elasticsearchSearchContext.identityHashCode", System.identityHashCode(context));
196+
.setAttribute("query.match.runNumber", runNumber);
198197

199198
BoolQuery.Builder queryBuilder = QueryBuilders.bool()
200199
.must(

0 commit comments

Comments
 (0)