-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement DroppedSpanStats * Dropped spans: calculate destination for dropped spans stats * Update Transaction.cs Introduce DroppedSpanStatsKey * Update Transaction.cs * Update DroppedSpansStatsTests.cs * Do not create Span.Context for dropped spans * Update ExitSpanTests.cs * Update Span.cs * Remove obsolete fields * Update DroppedSpansStats.cs * Generate less spans in Transaction_And_Spans_Captured_When_Large_Request * Update HttpContextCurrentExecutionSegmentsContainerTests.cs * Adapt test - remove unused fields
- Loading branch information
1 parent
e953480
commit 4c4d2c0
Showing
16 changed files
with
431 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Licensed to Elasticsearch B.V under | ||
// one or more agreements. | ||
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. | ||
// See the LICENSE file in the project root for more information | ||
|
||
using Elastic.Apm.Api; | ||
using Elastic.Apm.Libraries.Newtonsoft.Json; | ||
|
||
namespace Elastic.Apm.Model | ||
{ | ||
/// <summary> | ||
/// DroppedSpanStats holds information about spans that were dropped (for example due to transaction_max_spans or | ||
/// exit_span_min_duration). | ||
/// </summary> | ||
internal class DroppedSpanStats | ||
{ | ||
public DroppedSpanStats(string destinationServiceResource, Outcome outcome, double durationSumUs) | ||
{ | ||
DurationCount = 1; | ||
DestinationServiceResource = destinationServiceResource; | ||
Outcome = outcome; | ||
DurationSumUs = durationSumUs; | ||
} | ||
|
||
/// <summary> | ||
/// DestinationServiceResource identifies the destination service resource being operated on. e.g. 'http://elastic.co:80', | ||
/// 'elasticsearch', 'rabbitmq/queue_name'. | ||
/// </summary> | ||
[JsonProperty("destination_service_resource")] | ||
public string DestinationServiceResource { get; } | ||
|
||
/// <summary> | ||
/// Duration holds duration aggregations about the dropped span. | ||
/// Count holds the number of times the dropped span happened. | ||
/// </summary> | ||
[JsonProperty("duration.count")] | ||
public int DurationCount { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// Duration holds duration aggregations about the dropped span. | ||
/// Sum holds dimensions about the dropped span's duration. | ||
/// </summary> | ||
[JsonProperty("duration.sum.us")] | ||
public double DurationSumUs { get; set; } | ||
|
||
/// <summary> | ||
/// Outcome of the aggregated spans. | ||
/// </summary> | ||
public Outcome Outcome { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.