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
491e78db
Unverified
Commit
491e78db
authored
Apr 21, 2018
by
吴晟 Wu Sheng
Committed by
GitHub
Apr 21, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19 from liuhaoyang/feature/httpclient_diagnostics
Provide support for HttpClient
parents
21d3220f
30081daa
Changes
83
Hide whitespace changes
Inline
Side-by-side
Showing
83 changed files
with
222 additions
and
103 deletions
+222
-103
version.props
build/version.props
+1
-1
skywalking-csharp.sln
skywalking-csharp.sln
+7
-0
IBootService.cs
src/SkyWalking.Abstractions/Boot/IBootService.cs
+1
-1
AgentConfig.cs
src/SkyWalking.Abstractions/Config/AgentConfig.cs
+1
-1
CollectorConfig.cs
src/SkyWalking.Abstractions/Config/CollectorConfig.cs
+1
-1
DictionaryConfig.cs
src/SkyWalking.Abstractions/Config/DictionaryConfig.cs
+16
-16
RemoteDownstreamConfig.cs
src/SkyWalking.Abstractions/Config/RemoteDownstreamConfig.cs
+1
-1
CarrierItem.cs
src/SkyWalking.Abstractions/Context/CarrierItem.cs
+1
-1
IContextCarrier.cs
src/SkyWalking.Abstractions/Context/IContextCarrier.cs
+1
-1
IContextSnapshot.cs
src/SkyWalking.Abstractions/Context/IContextSnapshot.cs
+1
-1
IIgnoreTracerContextListener.cs
...king.Abstractions/Context/IIgnoreTracerContextListener.cs
+1
-1
IInjectable.cs
src/SkyWalking.Abstractions/Context/IInjectable.cs
+1
-1
ITracerContext.cs
src/SkyWalking.Abstractions/Context/ITracerContext.cs
+1
-1
ITracingContextListener.cs
...kyWalking.Abstractions/Context/ITracingContextListener.cs
+1
-1
DistributedTraceId.cs
...SkyWalking.Abstractions/Context/Ids/DistributedTraceId.cs
+1
-1
ID.cs
src/SkyWalking.Abstractions/Context/Ids/ID.cs
+1
-1
IDistributedTraceIdCollection.cs
...Abstractions/Context/Ids/IDistributedTraceIdCollection.cs
+1
-1
AbstractTag.cs
src/SkyWalking.Abstractions/Context/Tag/AbstractTag.cs
+1
-1
AbstractTracingSpan.cs
...Walking.Abstractions/Context/Trace/AbstractTracingSpan.cs
+1
-1
ISpan.cs
src/SkyWalking.Abstractions/Context/Trace/ISpan.cs
+1
-1
ITraceSegment.cs
src/SkyWalking.Abstractions/Context/Trace/ITraceSegment.cs
+1
-1
ITraceSegmentRef.cs
...SkyWalking.Abstractions/Context/Trace/ITraceSegmentRef.cs
+1
-1
IWithPeerInfo.cs
src/SkyWalking.Abstractions/Context/Trace/IWithPeerInfo.cs
+1
-1
LogDataEntity.cs
src/SkyWalking.Abstractions/Context/Trace/LogDataEntity.cs
+1
-1
SegmentRefType.cs
src/SkyWalking.Abstractions/Context/Trace/SegmentRefType.cs
+1
-1
SpanLayer.cs
src/SkyWalking.Abstractions/Context/Trace/SpanLayer.cs
+1
-1
StackBasedTracingSpan.cs
...lking.Abstractions/Context/Trace/StackBasedTracingSpan.cs
+1
-2
DateTimeExtensions.cs
...yWalking.Abstractions/Context/Utils/DateTimeExtensions.cs
+1
-1
ExceptionExtensions.cs
...Walking.Abstractions/Context/Utils/ExceptionExtensions.cs
+1
-1
KeyValuePair.cs
src/SkyWalking.Abstractions/Context/Utils/KeyValuePair.cs
+1
-1
SpanLayerExtensions.cs
...Walking.Abstractions/Context/Utils/SpanLayerExtensions.cs
+1
-1
ITracingDiagnosticListener.cs
...ng.Abstractions/Diagnostics/ITracingDiagnosticListener.cs
+2
-2
DictionaryUtil.cs
src/SkyWalking.Abstractions/Dictionary/DictionaryUtil.cs
+1
-1
PossibleFound.cs
src/SkyWalking.Abstractions/Dictionary/PossibleFound.cs
+1
-1
ISampler.cs
src/SkyWalking.Abstractions/Sampling/ISampler.cs
+1
-1
HostingDiagnosticListener.cs
...lking.AspNetCore/Diagnostics/HostingDiagnosticListener.cs
+2
-1
ServiceCollectionExtensions.cs
...king.AspNetCore/Extensions/ServiceCollectionExtensions.cs
+3
-2
SkyWalking.AspNetCore.csproj
src/SkyWalking.AspNetCore/SkyWalking.AspNetCore.csproj
+2
-2
SkyWalkingHostedService.cs
src/SkyWalking.AspNetCore/SkyWalkingHostedService.cs
+2
-2
SkyWalkingOptions.cs
src/SkyWalking.AspNetCore/SkyWalkingOptions.cs
+1
-1
TracingHttpClient.cs
src/SkyWalking.AspNetCore/TracingHttpClient.cs
+19
-1
TracingHttpHandler.cs
src/SkyWalking.AspNetCore/TracingHttpHandler.cs
+1
-1
TracingHttpMessageHandlerBuilder.cs
...SkyWalking.AspNetCore/TracingHttpMessageHandlerBuilder.cs
+1
-1
ServiceManager.cs
src/SkyWalking.Core/Boot/ServiceManager.cs
+1
-1
TimerService.cs
src/SkyWalking.Core/Boot/TimerService.cs
+1
-1
CarrierItemHead.cs
src/SkyWalking.Core/Context/CarrierItemHead.cs
+1
-1
ContextCarrier.cs
src/SkyWalking.Core/Context/ContextCarrier.cs
+1
-1
ContextManager.cs
src/SkyWalking.Core/Context/ContextManager.cs
+1
-1
ContextSnapshot.cs
src/SkyWalking.Core/Context/ContextSnapshot.cs
+1
-1
DistributedTraceIdCollection.cs
...yWalking.Core/Context/Ids/DistributedTraceIdCollection.cs
+1
-1
GlobalIdGenerator.cs
src/SkyWalking.Core/Context/Ids/GlobalIdGenerator.cs
+1
-1
NewDistributedTraceId.cs
src/SkyWalking.Core/Context/Ids/NewDistributedTraceId.cs
+1
-1
PropagatedTraceId.cs
src/SkyWalking.Core/Context/Ids/PropagatedTraceId.cs
+1
-1
IgnoredTracerContext.cs
src/SkyWalking.Core/Context/IgnoredTracerContext.cs
+1
-2
SW3CarrierItem.cs
src/SkyWalking.Core/Context/SW3CarrierItem.cs
+1
-1
StringTag.cs
src/SkyWalking.Core/Context/Tag/StringTag.cs
+1
-1
Tags.cs
src/SkyWalking.Core/Context/Tag/Tags.cs
+1
-1
EntrySpan.cs
src/SkyWalking.Core/Context/Trace/EntrySpan.cs
+1
-1
ExitSpan.cs
src/SkyWalking.Core/Context/Trace/ExitSpan.cs
+1
-1
LocalSpan.cs
src/SkyWalking.Core/Context/Trace/LocalSpan.cs
+1
-2
NoopExitSpan.cs
src/SkyWalking.Core/Context/Trace/NoopExitSpan.cs
+1
-1
NoopSpan.cs
src/SkyWalking.Core/Context/Trace/NoopSpan.cs
+1
-1
TraceSegment.cs
src/SkyWalking.Core/Context/Trace/TraceSegment.cs
+1
-1
TraceSegmentRef.cs
src/SkyWalking.Core/Context/Trace/TraceSegmentRef.cs
+1
-1
TraceContextCarrierItem.cs
src/SkyWalking.Core/Context/TraceContextCarrierItem.cs
+1
-2
TracingContext.cs
src/SkyWalking.Core/Context/TracingContext.cs
+1
-1
DictionaryManager.cs
src/SkyWalking.Core/Dictionary/DictionaryManager.cs
+1
-1
Found.cs
src/SkyWalking.Core/Dictionary/Found.cs
+1
-1
NetworkAddressDictionary.cs
src/SkyWalking.Core/Dictionary/NetworkAddressDictionary.cs
+1
-1
NotFound.cs
src/SkyWalking.Core/Dictionary/NotFound.cs
+1
-1
OperationNameDictionary.cs
src/SkyWalking.Core/Dictionary/OperationNameDictionary.cs
+1
-1
GrpcApplicationService.cs
src/SkyWalking.Core/Remote/GrpcApplicationService.cs
+1
-1
GrpcChannelManager.cs
src/SkyWalking.Core/Remote/GrpcChannelManager.cs
+1
-1
GrpcRuntimeService.cs
src/SkyWalking.Core/Remote/GrpcRuntimeService.cs
+1
-1
GrpcTraceSegmentService.cs
src/SkyWalking.Core/Remote/GrpcTraceSegmentService.cs
+19
-1
SamplingService.cs
src/SkyWalking.Core/Sampling/SamplingService.cs
+1
-1
AtomicInteger.cs
src/SkyWalking.Core/Utils/AtomicInteger.cs
+1
-1
StackExtensions.cs
src/SkyWalking.Core/Utils/StackExtensions.cs
+1
-1
HttpClientDiagnosticListener.cs
...ng.Diagnostics.HttpClient/HttpClientDiagnosticListener.cs
+57
-0
SkyWalking.Diagnostics.HttpClient.csproj
...stics.HttpClient/SkyWalking.Diagnostics.HttpClient.csproj
+21
-0
ComponentsDefine.cs
src/SkyWalking.NetworkProtocol.Trace/ComponentsDefine.cs
+1
-1
IComponent.cs
src/SkyWalking.NetworkProtocol.Trace/IComponent.cs
+1
-1
OfficialComponent.cs
src/SkyWalking.NetworkProtocol.Trace/OfficialComponent.cs
+1
-1
No files found.
build/version.props
View file @
491e78db
<Project>
<Project>
<PropertyGroup>
<PropertyGroup>
<VersionMajor>0</VersionMajor>
<VersionMajor>0</VersionMajor>
<VersionMinor>
1
</VersionMinor>
<VersionMinor>
2
</VersionMinor>
<VersionPatch>0</VersionPatch>
<VersionPatch>0</VersionPatch>
<VersionQuality></VersionQuality>
<VersionQuality></VersionQuality>
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
...
...
skywalking-csharp.sln
View file @
491e78db
...
@@ -36,6 +36,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SkyWalking.Sample.Backend",
...
@@ -36,6 +36,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SkyWalking.Sample.Backend",
EndProject
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SkyWalking.Sample.Frontend", "sample\SkyWalking.Sample.Frontend\SkyWalking.Sample.Frontend.csproj", "{2B4E350E-A1E5-4B4A-A642-BCA6D3887E5A}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SkyWalking.Sample.Frontend", "sample\SkyWalking.Sample.Frontend\SkyWalking.Sample.Frontend.csproj", "{2B4E350E-A1E5-4B4A-A642-BCA6D3887E5A}"
EndProject
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SkyWalking.Diagnostics.HttpClient", "src\SkyWalking.Diagnostics.HttpClient\SkyWalking.Diagnostics.HttpClient.csproj", "{49DEFCA8-4289-4875-B6A5-35D84B3D2290}"
EndProject
Global
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Any CPU = Debug|Any CPU
...
@@ -74,6 +76,10 @@ Global
...
@@ -74,6 +76,10 @@ Global
{2B4E350E-A1E5-4B4A-A642-BCA6D3887E5A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B4E350E-A1E5-4B4A-A642-BCA6D3887E5A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B4E350E-A1E5-4B4A-A642-BCA6D3887E5A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2B4E350E-A1E5-4B4A-A642-BCA6D3887E5A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2B4E350E-A1E5-4B4A-A642-BCA6D3887E5A}.Release|Any CPU.Build.0 = Release|Any CPU
{2B4E350E-A1E5-4B4A-A642-BCA6D3887E5A}.Release|Any CPU.Build.0 = Release|Any CPU
{49DEFCA8-4289-4875-B6A5-35D84B3D2290}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{49DEFCA8-4289-4875-B6A5-35D84B3D2290}.Debug|Any CPU.Build.0 = Debug|Any CPU
{49DEFCA8-4289-4875-B6A5-35D84B3D2290}.Release|Any CPU.ActiveCfg = Release|Any CPU
{49DEFCA8-4289-4875-B6A5-35D84B3D2290}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
HideSolutionNode = FALSE
...
@@ -89,6 +95,7 @@ Global
...
@@ -89,6 +95,7 @@ Global
{D75B68C5-6788-4871-A63F-F6EB48FB0DC5} = {79ED86A5-E9B9-49B2-9354-C911C079D03E}
{D75B68C5-6788-4871-A63F-F6EB48FB0DC5} = {79ED86A5-E9B9-49B2-9354-C911C079D03E}
{80A67B09-83F2-477F-907F-95FFF5B8FEAF} = {844CEACD-4C85-4B15-9E2B-892B01FDA4BB}
{80A67B09-83F2-477F-907F-95FFF5B8FEAF} = {844CEACD-4C85-4B15-9E2B-892B01FDA4BB}
{2B4E350E-A1E5-4B4A-A642-BCA6D3887E5A} = {844CEACD-4C85-4B15-9E2B-892B01FDA4BB}
{2B4E350E-A1E5-4B4A-A642-BCA6D3887E5A} = {844CEACD-4C85-4B15-9E2B-892B01FDA4BB}
{49DEFCA8-4289-4875-B6A5-35D84B3D2290} = {79ED86A5-E9B9-49B2-9354-C911C079D03E}
EndGlobalSection
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {94C0DA2C-CCCB-4314-93A2-9809B5DD0583}
SolutionGuid = {94C0DA2C-CCCB-4314-93A2-9809B5DD0583}
...
...
src/SkyWalking.Abstractions/Boot/IBootService.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Config/AgentConfig.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Config/CollectorConfig.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Config/DictionaryConfig.cs
View file @
491e78db
/*
/*
* Licensed to the Apache Software Foundation (ASF)
under one or more
* Licensed to the OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*
*
*/
*/
namespace
SkyWalking.Config
namespace
SkyWalking.Config
{
{
...
...
src/SkyWalking.Abstractions/Config/RemoteDownstreamConfig.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/CarrierItem.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/IContextCarrier.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/IContextSnapshot.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/IIgnoreTracerContextListener.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/IInjectable.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/ITracerContext.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/ITracingContextListener.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Ids/DistributedTraceId.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Ids/ID.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Ids/IDistributedTraceIdCollection.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Tag/AbstractTag.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Trace/AbstractTracingSpan.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Trace/ISpan.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Trace/ITraceSegment.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Trace/ITraceSegmentRef.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Trace/IWithPeerInfo.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Trace/LogDataEntity.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Trace/SegmentRefType.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Trace/SpanLayer.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Trace/StackBasedTracingSpan.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
*
*
*/
*/
namespace
SkyWalking.Context.Trace
namespace
SkyWalking.Context.Trace
{
{
public
abstract
class
StackBasedTracingSpan
:
AbstractTracingSpan
public
abstract
class
StackBasedTracingSpan
:
AbstractTracingSpan
...
...
src/SkyWalking.Abstractions/Context/Utils/DateTimeExtensions.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Utils/ExceptionExtensions.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Utils/KeyValuePair.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Context/Utils/SpanLayerExtensions.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.A
spNetCore
/Diagnostics/ITracingDiagnosticListener.cs
→
src/SkyWalking.A
bstractions
/Diagnostics/ITracingDiagnosticListener.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
*
*
*/
*/
namespace
SkyWalking.
AspNetCore.
Diagnostics
namespace
SkyWalking.Diagnostics
{
{
public
interface
ITracingDiagnosticListener
public
interface
ITracingDiagnosticListener
{
{
...
...
src/SkyWalking.Abstractions/Dictionary/DictionaryUtil.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Dictionary/PossibleFound.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Abstractions/Sampling/ISampler.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.AspNetCore/Diagnostics/HostingDiagnosticListener.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
@@ -22,6 +22,7 @@ using Microsoft.Extensions.DiagnosticAdapter;
...
@@ -22,6 +22,7 @@ using Microsoft.Extensions.DiagnosticAdapter;
using
SkyWalking.Context
;
using
SkyWalking.Context
;
using
SkyWalking.Context.Tag
;
using
SkyWalking.Context.Tag
;
using
SkyWalking.Context.Trace
;
using
SkyWalking.Context.Trace
;
using
SkyWalking.Diagnostics
;
using
SkyWalking.NetworkProtocol.Trace
;
using
SkyWalking.NetworkProtocol.Trace
;
namespace
SkyWalking.AspNetCore.Diagnostics
namespace
SkyWalking.AspNetCore.Diagnostics
...
...
src/SkyWalking.AspNetCore/Extensions/ServiceCollectionExtensions.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
@@ -23,6 +23,7 @@ using Microsoft.Extensions.DependencyInjection.Extensions;
...
@@ -23,6 +23,7 @@ using Microsoft.Extensions.DependencyInjection.Extensions;
using
Microsoft.Extensions.Hosting
;
using
Microsoft.Extensions.Hosting
;
using
Microsoft.Extensions.Http
;
using
Microsoft.Extensions.Http
;
using
SkyWalking.AspNetCore.Diagnostics
;
using
SkyWalking.AspNetCore.Diagnostics
;
using
SkyWalking.Diagnostics
;
namespace
SkyWalking.AspNetCore
namespace
SkyWalking.AspNetCore
{
{
...
@@ -55,7 +56,7 @@ namespace SkyWalking.AspNetCore
...
@@ -55,7 +56,7 @@ namespace SkyWalking.AspNetCore
services
.
AddHttpClient
<
TracingHttpClient
>(
"sw-tracing"
);
services
.
AddHttpClient
<
TracingHttpClient
>(
"sw-tracing"
);
services
.
AddSingleton
<
IHostedService
,
SkyWalkingHostedService
>();
services
.
AddSingleton
<
IHostedService
,
SkyWalkingHostedService
>();
services
.
Try
AddSingleton
<
ITracingDiagnosticListener
,
HostingDiagnosticListener
>();
services
.
AddSingleton
<
ITracingDiagnosticListener
,
HostingDiagnosticListener
>();
services
.
AddTransient
<
HttpMessageHandlerBuilder
,
TracingHttpMessageHandlerBuilder
>();
services
.
AddTransient
<
HttpMessageHandlerBuilder
,
TracingHttpMessageHandlerBuilder
>();
return
services
;
return
services
;
...
...
src/SkyWalking.AspNetCore/SkyWalking.AspNetCore.csproj
View file @
491e78db
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\build\common.props" />
<Import Project="..\..\build\common.props" />
<PropertyGroup>
<PropertyGroup>
<Description>SkyWalking ASP.NET Core Agent.</Description>
<Description>SkyWalking ASP.NET Core Agent.</Description>
<AssemblyTitle>SkyWalking.AspNetCore</AssemblyTitle>
<AssemblyTitle>SkyWalking.AspNetCore</AssemblyTitle>
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<PackageTags>SkyWalking;APM</PackageTags>
<PackageTags>SkyWalking;APM</PackageTags>
<PackageReleaseNotes>
<PackageReleaseNotes>
</PackageReleaseNotes>
</PackageReleaseNotes>
<RootNamespace>SkyWalking</RootNamespace>
<RootNamespace>SkyWalking
.AspNetCore
</RootNamespace>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.1.0-preview2-final" />
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.1.0-preview2-final" />
...
...
src/SkyWalking.AspNetCore/SkyWalkingHostedService.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
@@ -23,9 +23,9 @@ using System.Threading;
...
@@ -23,9 +23,9 @@ using System.Threading;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
Microsoft.Extensions.Hosting
;
using
Microsoft.Extensions.Hosting
;
using
Microsoft.Extensions.Options
;
using
Microsoft.Extensions.Options
;
using
SkyWalking.AspNetCore.Diagnostics
;
using
SkyWalking.Boot
;
using
SkyWalking.Boot
;
using
SkyWalking.Config
;
using
SkyWalking.Config
;
using
SkyWalking.Diagnostics
;
using
SkyWalking.Remote
;
using
SkyWalking.Remote
;
namespace
SkyWalking.AspNetCore
namespace
SkyWalking.AspNetCore
...
...
src/SkyWalking.AspNetCore/SkyWalkingOptions.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.AspNetCore/TracingHttpClient.cs
View file @
491e78db
using
System.Net.Http
;
/*
* Licensed to the OpenSkywalking under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
using
System.Net.Http
;
namespace
SkyWalking.AspNetCore
namespace
SkyWalking.AspNetCore
{
{
...
...
src/SkyWalking.AspNetCore/TracingHttpHandler.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.AspNetCore/TracingHttpMessageHandlerBuilder.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Boot/ServiceManager.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Boot/TimerService.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/CarrierItemHead.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/ContextCarrier.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/ContextManager.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/ContextSnapshot.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/Ids/DistributedTraceIdCollection.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/Ids/GlobalIdGenerator.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/Ids/NewDistributedTraceId.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/Ids/PropagatedTraceId.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/IgnoredTracerContext.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
*
*
*/
*/
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.CompilerServices
;
using
SkyWalking.Context.Trace
;
using
SkyWalking.Context.Trace
;
...
...
src/SkyWalking.Core/Context/SW3CarrierItem.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/Tag/StringTag.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/Tag/Tags.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/Trace/EntrySpan.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/Trace/ExitSpan.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/Trace/LocalSpan.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
*
*
*/
*/
namespace
SkyWalking.Context.Trace
namespace
SkyWalking.Context.Trace
{
{
public
class
LocalSpan
:
StackBasedTracingSpan
public
class
LocalSpan
:
StackBasedTracingSpan
...
...
src/SkyWalking.Core/Context/Trace/NoopExitSpan.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/Trace/NoopSpan.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/Trace/TraceSegment.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/Trace/TraceSegmentRef.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Context/TraceContextCarrierItem.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
*
*
*/
*/
using
System
;
using
System
;
namespace
SkyWalking.Context
namespace
SkyWalking.Context
...
...
src/SkyWalking.Core/Context/TracingContext.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Dictionary/DictionaryManager.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Dictionary/Found.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Dictionary/NetworkAddressDictionary.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Dictionary/NotFound.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Dictionary/OperationNameDictionary.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Remote/GrpcApplicationService.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Remote/GrpcChannelManager.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Remote/GrpcRuntimeService.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Remote/GrpcTraceSegmentService.cs
View file @
491e78db
using
System.Threading
;
/*
* Licensed to the OpenSkywalking under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
SkyWalking.Boot
;
using
SkyWalking.Boot
;
using
SkyWalking.Context
;
using
SkyWalking.Context
;
...
...
src/SkyWalking.Core/Sampling/SamplingService.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Utils/AtomicInteger.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Core/Utils/StackExtensions.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.Diagnostics.HttpClient/HttpClientDiagnosticListener.cs
0 → 100644
View file @
491e78db
/*
* Licensed to the OpenSkywalking under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
using
System.Net.Http
;
using
Microsoft.Extensions.DiagnosticAdapter
;
using
SkyWalking.Context
;
using
SkyWalking.Context.Tag
;
using
SkyWalking.Context.Trace
;
using
SkyWalking.NetworkProtocol.Trace
;
namespace
SkyWalking.Diagnostics.HttpClient
{
public
class
HttpClientDiagnosticListener
:
ITracingDiagnosticListener
{
public
string
ListenerName
{
get
;
}
=
"HttpHandlerDiagnosticListener"
;
[
DiagnosticName
(
"System.Net.Http.Request"
)]
public
void
HttpRequest
(
HttpRequestMessage
request
)
{
var
contextCarrier
=
new
ContextCarrier
();
var
peer
=
$"
{
request
.
RequestUri
.
Host
}
:
{
request
.
RequestUri
.
Port
}
"
;
var
span
=
ContextManager
.
CreateExitSpan
(
request
.
RequestUri
.
ToString
(),
contextCarrier
,
peer
);
Tags
.
Url
.
Set
(
span
,
request
.
RequestUri
.
ToString
());
span
.
AsHttp
();
span
.
SetComponent
(
ComponentsDefine
.
HttpClient
);
Tags
.
HTTP
.
Method
.
Set
(
span
,
request
.
Method
.
ToString
());
foreach
(
var
item
in
contextCarrier
.
Items
)
request
.
Headers
.
Add
(
item
.
HeadKey
,
item
.
HeadValue
);
}
[
DiagnosticName
(
"System.Net.Http.Response"
)]
public
void
HttpResponse
(
HttpResponseMessage
response
)
{
var
span
=
ContextManager
.
ActiveSpan
;
if
(
span
!=
null
&&
span
.
IsExit
)
{
Tags
.
StatusCode
.
Set
(
span
,
response
.
StatusCode
.
ToString
());
ContextManager
.
StopSpan
(
span
);
}
}
}
}
\ No newline at end of file
src/SkyWalking.Diagnostics.HttpClient/SkyWalking.Diagnostics.HttpClient.csproj
0 → 100644
View file @
491e78db
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\build\common.props" />
<PropertyGroup>
<Description>SkyWalking.Diagnostics.HttpClient notifies outgoing Http requests.</Description>
<AssemblyTitle>SkyWalking.Diagnostics.HttpClient</AssemblyTitle>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>SkyWalking.Diagnostics.HttpClient</AssemblyName>
<PackageId>SkyWalking.Diagnostics.HttpClient</PackageId>
<PackageTags>SkyWalking;APM;Diagnostics;HttpClient</PackageTags>
<PackageReleaseNotes>
</PackageReleaseNotes>
<RootNamespace>SkyWalking.Diagnostics.HttpClient</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DiagnosticAdapter" Version="2.1.0-preview2-final" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SkyWalking.Abstractions\SkyWalking.Abstractions.csproj" />
<ProjectReference Include="..\SkyWalking.Core\SkyWalking.Core.csproj" />
</ItemGroup>
</Project>
\ No newline at end of file
src/SkyWalking.NetworkProtocol.Trace/ComponentsDefine.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.NetworkProtocol.Trace/IComponent.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
src/SkyWalking.NetworkProtocol.Trace/OfficialComponent.cs
View file @
491e78db
/*
/*
* Licensed to the
Apache Software Foundation (ASF)
under one or more
* Licensed to the
OpenSkywalking
under one or more
* contributor license agreements. See the NOTICE file distributed with
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* The ASF licenses this file to You under the Apache License, Version 2.0
...
...
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