-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from NoRedInk/log-when-changing-query-timeout
add a tracing span when modifying the query timeout
- Loading branch information
Showing
5 changed files
with
128 additions
and
10 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
49 changes: 49 additions & 0 deletions
49
nri-redis/test/golden-results-9.2/observability-spec-reporting-with-query-timout
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,49 @@ | ||
TracingSpan | ||
{ name = "test-root" | ||
, started = MonotonicTime { inMicroseconds = 0 } | ||
, finished = MonotonicTime { inMicroseconds = 0 } | ||
, frame = | ||
Just | ||
( "rootTracingSpanIO" | ||
, SrcLoc | ||
{ srcLocPackage = "main" | ||
, srcLocModule = "Spec.Redis" | ||
, srcLocFile = "test/Spec/Redis.hs" | ||
, srcLocStartLine = 31 | ||
, srcLocStartCol = 7 | ||
, srcLocEndLine = 31 | ||
, srcLocEndCol = 33 | ||
} | ||
) | ||
, details = Nothing | ||
, summary = Nothing | ||
, succeeded = Succeeded | ||
, containsFailures = False | ||
, allocated = 0 | ||
, children = | ||
[ TracingSpan | ||
{ name = "setting redis query timeout" | ||
, started = MonotonicTime { inMicroseconds = 0 } | ||
, finished = MonotonicTime { inMicroseconds = 0 } | ||
, frame = | ||
Just | ||
( "withContext" | ||
, SrcLoc | ||
{ srcLocPackage = "main" | ||
, srcLocModule = "Redis.Handler" | ||
, srcLocFile = "src/Redis/Handler.hs" | ||
, srcLocStartLine = 68 | ||
, srcLocStartCol = 8 | ||
, srcLocEndLine = 68 | ||
, srcLocEndCol = 23 | ||
} | ||
) | ||
, details = Just "{\"timeoutMilliseconds\":\"0\"}" | ||
, summary = Just "setting redis query timeout" | ||
, succeeded = Succeeded | ||
, containsFailures = False | ||
, allocated = 0 | ||
, children = [] | ||
} | ||
] | ||
} |
49 changes: 49 additions & 0 deletions
49
nri-redis/test/golden-results-9.2/observability-spec-reporting-without-query-timout
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,49 @@ | ||
TracingSpan | ||
{ name = "test-root" | ||
, started = MonotonicTime { inMicroseconds = 0 } | ||
, finished = MonotonicTime { inMicroseconds = 0 } | ||
, frame = | ||
Just | ||
( "rootTracingSpanIO" | ||
, SrcLoc | ||
{ srcLocPackage = "main" | ||
, srcLocModule = "Spec.Redis" | ||
, srcLocFile = "test/Spec/Redis.hs" | ||
, srcLocStartLine = 31 | ||
, srcLocStartCol = 7 | ||
, srcLocEndLine = 31 | ||
, srcLocEndCol = 33 | ||
} | ||
) | ||
, details = Nothing | ||
, summary = Nothing | ||
, succeeded = Succeeded | ||
, containsFailures = False | ||
, allocated = 0 | ||
, children = | ||
[ TracingSpan | ||
{ name = "setting no redis query timeout" | ||
, started = MonotonicTime { inMicroseconds = 0 } | ||
, finished = MonotonicTime { inMicroseconds = 0 } | ||
, frame = | ||
Just | ||
( "withContext" | ||
, SrcLoc | ||
{ srcLocPackage = "main" | ||
, srcLocModule = "Redis.Handler" | ||
, srcLocFile = "src/Redis/Handler.hs" | ||
, srcLocStartLine = 75 | ||
, srcLocStartCol = 8 | ||
, srcLocEndLine = 75 | ||
, srcLocEndCol = 23 | ||
} | ||
) | ||
, details = Just "{}" | ||
, summary = Just "setting no redis query timeout" | ||
, succeeded = Succeeded | ||
, containsFailures = False | ||
, allocated = 0 | ||
, children = [] | ||
} | ||
] | ||
} |