Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
bacb4797
Commit
bacb4797
authored
Apr 18, 2018
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed message enqueue exception in v2.2
parent
72161b90
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
version.props
build/version.props
+1
-1
DiagnosticListenerExtensions.cs
...otNetCore.CAP/Diagnostics/DiagnosticListenerExtensions.cs
+6
-0
EventData.Broker.cs
src/DotNetCore.CAP/Diagnostics/EventData.Broker.cs
+0
-1
IPublishMessageSender.Base.cs
src/DotNetCore.CAP/IPublishMessageSender.Base.cs
+1
-1
No files found.
build/version.props
View file @
bacb4797
...
...
@@ -2,7 +2,7 @@
<PropertyGroup>
<VersionMajor>2</VersionMajor>
<VersionMinor>2</VersionMinor>
<VersionPatch>
0
</VersionPatch>
<VersionPatch>
1
</VersionPatch>
<VersionQuality></VersionQuality>
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
</PropertyGroup>
...
...
src/DotNetCore.CAP/Diagnostics/DiagnosticListenerExtensions.cs
View file @
bacb4797
...
...
@@ -107,6 +107,7 @@ namespace DotNetCore.CAP.Diagnostics
{
if
(
@this
.
IsEnabled
(
CapBeforePublish
))
{
eventData
.
Headers
=
new
TracingHeaders
();
@this
.
Write
(
CapBeforePublish
,
eventData
);
}
}
...
...
@@ -115,6 +116,7 @@ namespace DotNetCore.CAP.Diagnostics
{
if
(
@this
.
IsEnabled
(
CapAfterPublish
))
{
eventData
.
Headers
=
new
TracingHeaders
();
@this
.
Write
(
CapAfterPublish
,
eventData
);
}
}
...
...
@@ -123,6 +125,7 @@ namespace DotNetCore.CAP.Diagnostics
{
if
(
@this
.
IsEnabled
(
CapErrorPublish
))
{
eventData
.
Headers
=
new
TracingHeaders
();
@this
.
Write
(
CapErrorPublish
,
eventData
);
}
}
...
...
@@ -135,6 +138,7 @@ namespace DotNetCore.CAP.Diagnostics
{
if
(
@this
.
IsEnabled
(
CapBeforeConsume
))
{
eventData
.
Headers
=
new
TracingHeaders
();
@this
.
Write
(
CapBeforeConsume
,
eventData
);
}
...
...
@@ -145,6 +149,7 @@ namespace DotNetCore.CAP.Diagnostics
{
if
(
@this
.
IsEnabled
(
CapAfterConsume
))
{
eventData
.
Headers
=
new
TracingHeaders
();
@this
.
Write
(
CapAfterConsume
,
eventData
);
}
}
...
...
@@ -153,6 +158,7 @@ namespace DotNetCore.CAP.Diagnostics
{
if
(
@this
.
IsEnabled
(
CapErrorConsume
))
{
eventData
.
Headers
=
new
TracingHeaders
();
@this
.
Write
(
CapErrorConsume
,
eventData
);
}
}
...
...
src/DotNetCore.CAP/Diagnostics/EventData.Broker.cs
View file @
bacb4797
...
...
@@ -11,7 +11,6 @@ namespace DotNetCore.CAP.Diagnostics
string
brokerTopicName
,
string
brokerTopicBody
)
:
base
(
operationId
,
operation
)
{
Headers
=
new
TracingHeaders
();
BrokerAddress
=
brokerAddress
;
BrokerTopicName
=
brokerTopicName
;
BrokerTopicBody
=
brokerTopicBody
;
...
...
src/DotNetCore.CAP/IPublishMessageSender.Base.cs
View file @
bacb4797
...
...
@@ -147,7 +147,7 @@ namespace DotNetCore.CAP
s_diagnosticListener
.
WritePublishBefore
(
eventData
);
return
(
operationId
,
eventData
.
Headers
);
return
(
operationId
,
eventData
.
Headers
);
//if not enabled diagnostics ,the header will be null
}
private
void
TracingAfter
(
Guid
operationId
,
string
topic
,
string
values
,
DateTimeOffset
startTime
,
TimeSpan
du
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment