├── .appveyor.yml ├── .gitattributes ├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── LICENSE.md ├── Management.sln ├── README.md ├── config ├── versions-dev.props ├── versions-master.props └── versions.props ├── nuget.config ├── open_source_licenses.txt ├── src ├── Steeltoe.Management.CloudFoundryCore │ ├── CloudFoundryApplicationBuilderExtensions.cs │ ├── CloudFoundryServiceCollectionExtensions.cs │ └── Steeltoe.Management.CloudFoundryCore.csproj ├── Steeltoe.Management.CloudFoundryTasks │ ├── CloudFoundryServiceCollectionExtensions.cs │ ├── CloudFoundryWebHostExtensions.cs │ ├── DelegatingTask.cs │ └── Steeltoe.Management.CloudFoundryTasks.csproj ├── Steeltoe.Management.Diagnostics │ ├── Microsoft │ │ ├── ClrAppDomain.cs │ │ ├── ClrException.cs │ │ ├── ClrHeap.cs │ │ ├── ClrModule.cs │ │ ├── ClrObject.cs │ │ ├── ClrRuntime.cs │ │ ├── ClrThread.cs │ │ ├── ClrType.cs │ │ ├── ClrValueClass.cs │ │ ├── DacInterfaces.cs │ │ ├── Debugger │ │ │ └── Enums.cs │ │ ├── Desktop │ │ │ ├── com.cs │ │ │ ├── domains.cs │ │ │ ├── fields.cs │ │ │ ├── heap.cs │ │ │ ├── helpers.cs │ │ │ ├── legacyruntime.cs │ │ │ ├── lockinspection.cs │ │ │ ├── methods.cs │ │ │ ├── modules.cs │ │ │ ├── runtimebase.cs │ │ │ ├── threadpool.cs │ │ │ ├── threads.cs │ │ │ ├── types.cs │ │ │ └── v45runtime.cs │ │ ├── GCRoot.cs │ │ ├── ICorDebug │ │ │ └── IMetadataImport.cs │ │ ├── MemoryReadException.cs │ │ ├── ObjectSet.cs │ │ ├── Utilities │ │ │ ├── pefile.cs │ │ │ └── sigparser.cs │ │ ├── datatarget.cs │ │ └── internal.cs │ ├── MiniDumper.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── Steeltoe.Management.Diagnostics.csproj ├── Steeltoe.Management.EndpointBase │ ├── AbstractEndpoint.cs │ ├── AbstractEndpointOptions.cs │ ├── AbstractOptions.cs │ ├── CloudFoundry │ │ ├── CloudFoundryEndpoint.cs │ │ ├── CloudFoundryEndpointOptions.cs │ │ ├── CloudFoundryManagementOptions.cs │ │ ├── CloudFoundryOptions.cs │ │ ├── ICloudFoundryOptions.cs │ │ ├── Link.cs │ │ ├── Links.cs │ │ ├── SecurityBase.cs │ │ └── SecurityResult.cs │ ├── Diagnostics │ │ └── DiagnosticServices.cs │ ├── EndpointExtensions.cs │ ├── Env │ │ ├── EnvEndpoint.cs │ │ ├── EnvEndpointOptions.cs │ │ ├── EnvOptions.cs │ │ ├── EnvironmentDescriptor.cs │ │ ├── GenericHostingEnvironment.cs │ │ ├── IEnvOptions.cs │ │ ├── PropertySourceDescriptor.cs │ │ ├── PropertyValueDescriptor.cs │ │ └── Sanitizer.cs │ ├── Exposure.cs │ ├── Health │ │ ├── Contributor │ │ │ ├── DiskSpaceContributor.cs │ │ │ └── DiskSpaceContributorOptions.cs │ │ ├── DefaultHealthAggregator.cs │ │ ├── HealthEndpoint.cs │ │ ├── HealthEndpointOptions.cs │ │ ├── HealthJsonConverter.cs │ │ ├── HealthOptions.cs │ │ ├── IHealthAggregator.cs │ │ ├── IHealthOptions.cs │ │ └── ShowDetails.cs │ ├── HeapDump │ │ ├── HeapDumpEndpoint.cs │ │ ├── HeapDumpEndpointOptions.cs │ │ ├── HeapDumpOptions.cs │ │ ├── HeapDumper.cs │ │ ├── IHeapDumpOptions.cs │ │ └── IHeapDumper.cs │ ├── Hypermedia │ │ ├── ActuatorContext.cs │ │ ├── ActuatorEndpoint.cs │ │ ├── ActuatorManagementOptions.cs │ │ ├── HypermediaEndpointOptions.cs │ │ ├── HypermediaService.cs │ │ └── IActuatorHypermediaOptions.cs │ ├── IEndpoint.cs │ ├── IEndpointOptions.cs │ ├── IManagementOptions.cs │ ├── Info │ │ ├── Contributor │ │ │ ├── AbstractConfigurationContributor.cs │ │ │ ├── AppSettingsInfoContributor.cs │ │ │ └── GitInfoContributor.cs │ │ ├── IInfoBuilder.cs │ │ ├── IInfoContributor.cs │ │ ├── IInfoOptions.cs │ │ ├── InfoBuilder.cs │ │ ├── InfoEndpoint.cs │ │ ├── InfoEndpointOptions.cs │ │ └── InfoOptions.cs │ ├── Loggers │ │ ├── ILoggersOptions.cs │ │ ├── LoggerLevels.cs │ │ ├── LoggersChangeRequest.cs │ │ ├── LoggersEndpoint.cs │ │ ├── LoggersEndpointOptions.cs │ │ └── LoggersOptions.cs │ ├── ManagementEndpointOptions.cs │ ├── ManagementOptions.cs │ ├── Mappings │ │ ├── ApplicationMappings.cs │ │ ├── ContextMappings.cs │ │ ├── IMappingsOptions.cs │ │ ├── IRouteDetails.cs │ │ ├── MappingDescription.cs │ │ ├── MappingsEndpoint.cs │ │ ├── MappingsEndpointOptions.cs │ │ └── MappingsOptions.cs │ ├── MediaTypeVersion.cs │ ├── Metrics │ │ ├── IMetricsOptions.cs │ │ ├── IMetricsResponse.cs │ │ ├── MetricSample.cs │ │ ├── MetricStatistic.cs │ │ ├── MetricTag.cs │ │ ├── MetricsEndpoint.cs │ │ ├── MetricsEndpointOptions.cs │ │ ├── MetricsHelpers.cs │ │ ├── MetricsListNamesResponse.cs │ │ ├── MetricsOptions.cs │ │ ├── MetricsRequest.cs │ │ ├── MetricsResponse.cs │ │ └── Observer │ │ │ ├── CLRRuntimeObserver.cs │ │ │ ├── CLRRuntimeSource.cs │ │ │ ├── HttpClientCoreObserver.cs │ │ │ ├── HttpClientDesktopObserver.cs │ │ │ └── MetricsObserver.cs │ ├── Middleware │ │ └── EndpointMiddleware.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Refresh │ │ ├── IRefreshOptions.cs │ │ ├── RefreshEndpoint.cs │ │ ├── RefreshEndpointOptions.cs │ │ └── RefreshOptions.cs │ ├── Security │ │ ├── EndpointClaim.cs │ │ ├── ISecurityContext.cs │ │ └── Permissions.cs │ ├── Steeltoe.Management.EndpointBase.csproj │ ├── ThreadDump │ │ ├── IThreadDumpOptions.cs │ │ ├── IThreadDumper.cs │ │ ├── LockInfo.cs │ │ ├── MetaDataImportProvider.cs │ │ ├── MonitorInfo.cs │ │ ├── StackTraceElement.cs │ │ ├── TState.cs │ │ ├── ThreadDumpEndpoint.cs │ │ ├── ThreadDumpEndpointOptions.cs │ │ ├── ThreadDumpEndpoint_v2.cs │ │ ├── ThreadDumpOptions.cs │ │ ├── ThreadDumpResult.cs │ │ ├── ThreadDumper.cs │ │ └── ThreadInfo.cs │ ├── Trace │ │ ├── HttpTraceEndpoint.cs │ │ ├── HttpTraceEndpointOptions.cs │ │ ├── HttpTraceResult.cs │ │ ├── IHttpTraceRepository.cs │ │ ├── ITraceOptions.cs │ │ ├── ITraceRepository.cs │ │ ├── TraceEndpoint.cs │ │ ├── TraceEndpointOptions.cs │ │ ├── TraceOptions.cs │ │ └── TraceResult.cs │ └── Utils.cs ├── Steeltoe.Management.EndpointCore │ ├── ActuatorServiceCollectionExtensions.cs │ ├── CloudFoundry │ │ ├── CloudFoundryEndpointMiddleware.cs │ │ ├── CloudFoundrySecurityMiddleware.cs │ │ ├── EndpointApplicationBuilderExtensions.cs │ │ └── EndpointServiceCollectionExtensions.cs │ ├── CoreSecurityContext.cs │ ├── Env │ │ ├── EndpointApplicationBuilderExtensions.cs │ │ ├── EndpointServiceCollectionExtensions.cs │ │ └── EnvEndpointMiddleware.cs │ ├── Health │ │ ├── EndpointApplicationBuilderExtensions.cs │ │ ├── EndpointServiceCollectionExtensions.cs │ │ ├── HealthCheckExtensions.cs │ │ ├── HealthEndpointCore.cs │ │ ├── HealthEndpointMiddleware.cs │ │ ├── HealthRegistrationsAggregator.cs │ │ └── IHealthRegistrationsAggregator.cs │ ├── HeapDump │ │ ├── EndpointApplicationBuilderExtensions.cs │ │ ├── EndpointServiceCollectionExtensions.cs │ │ └── HeapDumpEndpointMiddleware.cs │ ├── Hypermedia │ │ ├── ActuatorHypermediaEndpointMiddleware.cs │ │ ├── EndpointApplicationBuilderExtensions.cs │ │ └── EndpointServiceCollectionExtensions.cs │ ├── Info │ │ ├── EndpointApplicationBuilderExtensions.cs │ │ ├── EndpointServiceCollectionExtensions.cs │ │ └── InfoEndpointMiddleware.cs │ ├── Loggers │ │ ├── EndpointApplicationBuilderExtensions.cs │ │ ├── EndpointServiceCollectionExtensions.cs │ │ └── LoggersEndpointMiddleware.cs │ ├── Mappings │ │ ├── AspNetCoreRouteDetails.cs │ │ ├── EndpointApplicationBuilderExtensions.cs │ │ ├── EndpointServiceCollectionExtensions.cs │ │ ├── IRouteMappings.cs │ │ ├── MappingsEndpointMiddleware.cs │ │ ├── RouteBuilderExtensions.cs │ │ └── RouteMappings.cs │ ├── Metrics │ │ ├── EndpointApplicationBuilderExtensions.cs │ │ ├── EndpointServiceCollectionExtensions.cs │ │ ├── MetricsEndpointMiddleware.cs │ │ └── Observer │ │ │ └── AspNetCoreHostingObserver.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Refresh │ │ ├── EndpointApplicationBuilderExtensions.cs │ │ ├── EndpointServiceCollectionExtensions.cs │ │ └── RefreshEndpointMiddleware.cs │ ├── Steeltoe.Management.EndpointCore.csproj │ ├── ThreadDump │ │ ├── EndpointApplicationBuilderExtensions.cs │ │ ├── EndpointServiceCollectionExtensions.cs │ │ ├── ThreadDumpEndpointMiddleware.cs │ │ └── ThreadDumpEndpointMiddleware_v2.cs │ └── Trace │ │ ├── EndpointApplicationBuilderExtensions.cs │ │ ├── EndpointServiceCollectionExtensions.cs │ │ ├── HttpTraceDiagnosticObserver.cs │ │ ├── HttpTraceEndpointMiddleware.cs │ │ ├── TraceDiagnosticObserver.cs │ │ └── TraceEndpointMiddleware.cs ├── Steeltoe.Management.EndpointOwin │ ├── CloudFoundry │ │ ├── CloudFoundryEndpointAppBuilderExtensions.cs │ │ ├── CloudFoundryEndpointOwinMiddleware.cs │ │ ├── CloudFoundrySecurityAppBuilderExtensions.cs │ │ └── CloudFoundrySecurityOwinMiddleware.cs │ ├── CloudFoundryAppBuilderExtensions.cs │ ├── Diagnostics │ │ ├── DiagnosticSourceAppBuilderExtensions.cs │ │ └── DiagnosticSourceOwinMiddleware.cs │ ├── EndpointOwinMiddleware.cs │ ├── Env │ │ └── EnvEndpointAppBuilderExtensions.cs │ ├── Health │ │ ├── HealthEndpointAppBuilderExtensions.cs │ │ └── HealthEndpointOwinMiddleware.cs │ ├── HeapDump │ │ ├── HeapDumpEndpointAppBuilderExtensions.cs │ │ └── HeapDumpEndpointOwinMiddleware.cs │ ├── Hypermedia │ │ ├── ActuatorHypermediaEndpointOwinMiddleware.cs │ │ └── HypermediaActuatorEndpointAppBuilderExtensions.cs │ ├── Info │ │ └── InfoEndpointAppBuilderExtensions.cs │ ├── Loggers │ │ ├── LoggersEndpointAppBuilderExtensions.cs │ │ └── LoggersEndpointOwinMiddleware.cs │ ├── ManagementOptions.cs │ ├── Mappings │ │ ├── AspNetRouteDetails.cs │ │ ├── MappingsEndpointAppBuilderExtensions.cs │ │ └── MappingsEndpointOwinMiddleware.cs │ ├── Metrics │ │ ├── MetricsEndpointAppBuilderExtensions.cs │ │ ├── MetricsEndpointOwinMiddleware.cs │ │ └── Observer │ │ │ └── OwinHostingObserver.cs │ ├── OwinSecurityContext.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Refresh │ │ └── RefreshEndpointAppBuilderExtensions.cs │ ├── Steeltoe.Management.EndpointOwin.csproj │ ├── ThreadDump │ │ └── ThreadDumpEndpointAppBuilderExtensions.cs │ └── Trace │ │ ├── HttpTraceDiagnosticObserver.cs │ │ ├── TraceDiagnosticObserver.cs │ │ ├── TraceEndpointAppBuilderExtensions.cs │ │ └── TraceEndpointOwinMiddleware.cs ├── Steeltoe.Management.EndpointOwinAutofac │ ├── Actuators │ │ ├── ActuatorContainerBuilderExtensions.cs │ │ ├── CloudFoundryContainerBuilderExtensions.cs │ │ ├── DiagnosticSourceContainerBuilderExtensions.cs │ │ ├── EnvContainerBuilderExtensions.cs │ │ ├── HealthContainerBuilderExtensions.cs │ │ ├── HeapDumpContainerBuilderExtensions.cs │ │ ├── InfoContainerBuilderExtensions.cs │ │ ├── LoggersContainerBuilderExtensions.cs │ │ ├── MappingsContainerBuilderExtensions.cs │ │ ├── MetricsContainerBuilderExtensions.cs │ │ ├── RefreshContainerBuilderExtensions.cs │ │ ├── ThreadDumpContainerBuilderExtensions.cs │ │ └── TraceContainerBuilderExtensions.cs │ ├── ContainerBuilderExtensions.cs │ └── Steeltoe.Management.EndpointOwinAutofac.csproj ├── Steeltoe.Management.EndpointWeb │ ├── ActuatorConfigurator.cs │ ├── AspNetRouteDetails.cs │ ├── Handler │ │ ├── ActuatorHandler.cs │ │ ├── ActuatorHypermediaHandler.cs │ │ ├── CloudFoundryCorsHandler.cs │ │ ├── CloudFoundryHandler.cs │ │ ├── EnvHandler.cs │ │ ├── HealthHandler.cs │ │ ├── HeapDumpHandler.cs │ │ ├── HttpTraceHandler.cs │ │ ├── IActuatorHandler.cs │ │ ├── InfoHandler.cs │ │ ├── LoggersHandler.cs │ │ ├── MappingsHandler.cs │ │ ├── MetricsHandler.cs │ │ ├── RefreshHandler.cs │ │ ├── ThreadDumpHandler.cs │ │ ├── ThreadDumpHandler_v2.cs │ │ └── TraceHandler.cs │ ├── Module │ │ └── ActuatorModule.cs │ ├── Observer │ │ ├── AspNetHostingObserver.cs │ │ ├── HttpTraceDiagnosticObserver.cs │ │ └── TraceDiagnosticObserver.cs │ ├── Security │ │ ├── CloudFoundrySecurity.cs │ │ ├── ISecurityService.cs │ │ ├── SecurityServiceExtension.cs │ │ └── WebSecurityContext.cs │ ├── Steeltoe.Management.EndpointWeb.csproj │ └── StringExtensions.cs ├── Steeltoe.Management.ExporterBase │ ├── Metrics │ │ ├── CloudFoundryForwarder │ │ │ ├── Application.cs │ │ │ ├── CloudFoundryForwarderExporter.cs │ │ │ ├── CloudFoundryForwarderOptions.cs │ │ │ ├── CloudFoundryMetricWriter.cs │ │ │ ├── ICloudFoundryMetricWriter.cs │ │ │ ├── Instance.cs │ │ │ ├── Message.cs │ │ │ ├── Metric.cs │ │ │ ├── MetricType.cs │ │ │ ├── MicrometerMetricWriter.cs │ │ │ └── SpringBootMetricWriter.cs │ │ └── IMetricsExporter.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Steeltoe.Management.ExporterBase.csproj │ └── Tracing │ │ ├── ITraceExporter.cs │ │ └── Zipkin │ │ ├── ITraceExporterOptions.cs │ │ ├── TraceExporter.cs │ │ ├── TraceExporterHandler.cs │ │ ├── TraceExporterOptions.cs │ │ ├── ZipkinAnnotation.cs │ │ ├── ZipkinEndpoint.cs │ │ ├── ZipkinSpan.cs │ │ └── ZipkinSpanKind.cs ├── Steeltoe.Management.ExporterCore │ ├── Metrics │ │ └── CloudFoundryForwarder │ │ │ ├── EndpointApplicationBuilderExtensions.cs │ │ │ └── EndpointServiceCollectionExtensions.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Steeltoe.Management.ExporterCore.csproj │ └── Tracing │ │ └── Zipkin │ │ ├── ZipkinExporterApplicationBuilderExtensions.cs │ │ └── ZipkinExporterServiceCollectionExtensions.cs ├── Steeltoe.Management.OpenCensus │ ├── Api │ │ ├── Common │ │ │ ├── IClock.cs │ │ │ ├── IDuration.cs │ │ │ ├── IScope.cs │ │ │ └── ITimestamp.cs │ │ ├── Internal │ │ │ ├── IEventQueue.cs │ │ │ ├── IEventQueueEntry.cs │ │ │ └── ITimestampConverter.cs │ │ ├── Stats │ │ │ ├── Aggregations │ │ │ │ ├── ICount.cs │ │ │ │ ├── ICountData.cs │ │ │ │ ├── IDistribution.cs │ │ │ │ ├── IDistributionData.cs │ │ │ │ ├── ILastValue.cs │ │ │ │ ├── ILastValueDataDouble.cs │ │ │ │ ├── ILastValueDataLong.cs │ │ │ │ ├── IMean.cs │ │ │ │ ├── IMeanData.cs │ │ │ │ ├── ISum.cs │ │ │ │ ├── ISumDataDouble.cs │ │ │ │ └── ISumDataLong.cs │ │ │ ├── IAggregation.cs │ │ │ ├── IAggregationData.cs │ │ │ ├── IBucketBoundries.cs │ │ │ ├── IMeasure.cs │ │ │ ├── IMeasureMap.cs │ │ │ ├── IMeasurement.cs │ │ │ ├── IStats.cs │ │ │ ├── IStatsComponent.cs │ │ │ ├── IStatsRecorder.cs │ │ │ ├── IView.cs │ │ │ ├── IViewData.cs │ │ │ ├── IViewManager.cs │ │ │ ├── IViewName.cs │ │ │ ├── MeasureUnit.cs │ │ │ ├── Measurements │ │ │ │ ├── IMeasurementDouble.cs │ │ │ │ └── IMeasurementLong.cs │ │ │ ├── Measures │ │ │ │ ├── IMeasureDouble.cs │ │ │ │ └── IMeasureLong.cs │ │ │ └── StatsCollectionState.cs │ │ ├── Tags │ │ │ ├── ITag.cs │ │ │ ├── ITagContext.cs │ │ │ ├── ITagContextBuilder.cs │ │ │ ├── ITagKey.cs │ │ │ ├── ITagValue.cs │ │ │ ├── ITagger.cs │ │ │ ├── ITags.cs │ │ │ ├── ITagsComponent.cs │ │ │ ├── Propagation │ │ │ │ ├── ITagContextBinarySerializer.cs │ │ │ │ └── ITagPropagationComponent.cs │ │ │ └── TaggingState.cs │ │ └── Trace │ │ │ ├── Config │ │ │ ├── ITraceConfig.cs │ │ │ └── ITraceParams.cs │ │ │ ├── Export │ │ │ ├── IAttributes.cs │ │ │ ├── IErrorFilter.cs │ │ │ ├── IExportComponent.cs │ │ │ ├── IHandler.cs │ │ │ ├── ILatencyFilter.cs │ │ │ ├── ILinks.cs │ │ │ ├── IRunningPerSpanNameSummary.cs │ │ │ ├── IRunningSpanStore.cs │ │ │ ├── IRunningSpanStoreFilter.cs │ │ │ ├── IRunningSpanStoreSummary.cs │ │ │ ├── ISampledLatencyBucketBoundaries.cs │ │ │ ├── ISampledPerSpanNameSummary.cs │ │ │ ├── ISampledSpanStore.cs │ │ │ ├── ISampledSpanStoreErrorFilter.cs │ │ │ ├── ISampledSpanStoreLatencyFilter.cs │ │ │ ├── ISampledSpanStoreSummary.cs │ │ │ ├── ISpanData.cs │ │ │ ├── ISpanExporter.cs │ │ │ ├── ITimedEvent.cs │ │ │ └── ITimedEvents.cs │ │ │ ├── IAnnotation.cs │ │ │ ├── IAttributeValue.cs │ │ │ ├── ILink.cs │ │ │ ├── IMessageEvent.cs │ │ │ ├── ISampler.cs │ │ │ ├── ISpan.cs │ │ │ ├── ISpanBuilder.cs │ │ │ ├── ISpanContext.cs │ │ │ ├── ISpanId.cs │ │ │ ├── IStartEndHandler.cs │ │ │ ├── ITraceComponent.cs │ │ │ ├── ITraceId.cs │ │ │ ├── ITracer.cs │ │ │ ├── ITracing.cs │ │ │ ├── Internal │ │ │ └── IRandomGenerator.cs │ │ │ └── Propagation │ │ │ ├── IBinaryFormat.cs │ │ │ ├── IGetter.cs │ │ │ ├── IPropagationComponent.cs │ │ │ ├── ISetter.cs │ │ │ └── ITextFormat.cs │ ├── Impl │ │ ├── Common │ │ │ ├── DateTimeOffsetClock.cs │ │ │ ├── Duration.cs │ │ │ ├── Timestamp.cs │ │ │ └── ZeroTimeClock.cs │ │ ├── Internal │ │ │ ├── NoopScope.cs │ │ │ ├── SimpleEventQueue.cs │ │ │ ├── TimestampConverter.cs │ │ │ └── VarInt.cs │ │ ├── Stats │ │ │ ├── Aggregation.cs │ │ │ ├── AggregationData.cs │ │ │ ├── Aggregations │ │ │ │ ├── Count.cs │ │ │ │ ├── CountData.cs │ │ │ │ ├── Distribution.cs │ │ │ │ ├── DistributionData.cs │ │ │ │ ├── LastValue.cs │ │ │ │ ├── LastValueDataDouble.cs │ │ │ │ ├── LastValueDataLong.cs │ │ │ │ ├── Mean.cs │ │ │ │ ├── MeanData.cs │ │ │ │ ├── Sum.cs │ │ │ │ ├── SumDataDouble.cs │ │ │ │ └── SumDataLong.cs │ │ │ ├── BucketBoundaries.cs │ │ │ ├── CumulativeMutableViewData.cs │ │ │ ├── CurrentStatsState.cs │ │ │ ├── IntervalBucket.cs │ │ │ ├── Measure.cs │ │ │ ├── MeasureMap.cs │ │ │ ├── MeasureMapBase.cs │ │ │ ├── MeasureMapBuilder.cs │ │ │ ├── MeasureToViewMap.cs │ │ │ ├── Measurement.cs │ │ │ ├── Measurements │ │ │ │ ├── MeasurementDouble.cs │ │ │ │ └── MeasurementLong.cs │ │ │ ├── Measures │ │ │ │ ├── MeasureDouble.cs │ │ │ │ └── MeasureLong.cs │ │ │ ├── MutableAggregation.cs │ │ │ ├── MutableCount.cs │ │ │ ├── MutableDistribution.cs │ │ │ ├── MutableLastValue.cs │ │ │ ├── MutableMean.cs │ │ │ ├── MutableSum.cs │ │ │ ├── MutableViewData.cs │ │ │ ├── NoopMeasureMap.cs │ │ │ ├── NoopStats.cs │ │ │ ├── NoopStatsComponent.cs │ │ │ ├── NoopStatsRecorder.cs │ │ │ ├── NoopViewManager.cs │ │ │ ├── Stats.cs │ │ │ ├── StatsComponent.cs │ │ │ ├── StatsComponentBase.cs │ │ │ ├── StatsExtensions.cs │ │ │ ├── StatsManager.cs │ │ │ ├── StatsRecorder.cs │ │ │ ├── StatsRecorderBase.cs │ │ │ ├── View.cs │ │ │ ├── ViewData.cs │ │ │ ├── ViewManager.cs │ │ │ ├── ViewManagerBase.cs │ │ │ └── ViewName.cs │ │ ├── Tags │ │ │ ├── CurrentTagContextUtils.cs │ │ │ ├── CurrentTaggingState.cs │ │ │ ├── NoopTagContext.cs │ │ │ ├── NoopTagContextBinarySerializer.cs │ │ │ ├── NoopTagContextBuilder.cs │ │ │ ├── NoopTagPropagationComponent.cs │ │ │ ├── NoopTagger.cs │ │ │ ├── NoopTags.cs │ │ │ ├── NoopTagsComponent.cs │ │ │ ├── Propagation │ │ │ │ ├── SerializationUtils.cs │ │ │ │ ├── TagContextBinarySerializer.cs │ │ │ │ ├── TagContextBinarySerializerBase.cs │ │ │ │ ├── TagContextDeserializationException.cs │ │ │ │ ├── TagContextSerializationException.cs │ │ │ │ ├── TagPropagationComponent.cs │ │ │ │ └── TagPropagationComponentBase.cs │ │ │ ├── Tag.cs │ │ │ ├── TagContext.cs │ │ │ ├── TagContextBase.cs │ │ │ ├── TagContextBuilder.cs │ │ │ ├── TagContextBuilderBase.cs │ │ │ ├── TagKey.cs │ │ │ ├── TagValue.cs │ │ │ ├── TagValues.cs │ │ │ ├── Tagger.cs │ │ │ ├── TaggerBase.cs │ │ │ ├── Tags.cs │ │ │ ├── TagsComponent.cs │ │ │ ├── TagsComponentBase.cs │ │ │ └── Unsafe │ │ │ │ └── AsyncLocalContext.cs │ │ └── Trace │ │ │ ├── Annotation.cs │ │ │ ├── AttributeValue.cs │ │ │ ├── BlankSpan.cs │ │ │ ├── CanonicalCode.cs │ │ │ ├── Config │ │ │ ├── NoopTraceConfig.cs │ │ │ ├── TraceConfig.cs │ │ │ ├── TraceConfigBase.cs │ │ │ ├── TraceParams.cs │ │ │ └── TraceParamsBuilder.cs │ │ │ ├── CurrentSpanUtils.cs │ │ │ ├── EndSpanOptions.cs │ │ │ ├── EndSpanOptionsBuilder.cs │ │ │ ├── EventWithNanoTime.cs │ │ │ ├── Export │ │ │ ├── Attributes.cs │ │ │ ├── ExportComponent.cs │ │ │ ├── ExportComponentBase.cs │ │ │ ├── InProcessRunningSpanStore.cs │ │ │ ├── InProcessSampledSpanStore.cs │ │ │ ├── LatencyBucketBoundaries.cs │ │ │ ├── LinkList.cs │ │ │ ├── NoopExportComponent.cs │ │ │ ├── NoopRunningSpanStore.cs │ │ │ ├── NoopSampledSpanStore.cs │ │ │ ├── NoopSpanExporter.cs │ │ │ ├── RunningPerSpanNameSummary.cs │ │ │ ├── RunningSpanStoreBase.cs │ │ │ ├── RunningSpanStoreFilter.cs │ │ │ ├── RunningSpanStoreSummary.cs │ │ │ ├── SampledPerSpanNameSummary.cs │ │ │ ├── SampledSpanStoreBase.cs │ │ │ ├── SampledSpanStoreErrorFilter.cs │ │ │ ├── SampledSpanStoreLatencyFilter.cs │ │ │ ├── SampledSpanStoreSummary.cs │ │ │ ├── SpanData.cs │ │ │ ├── SpanExporter.cs │ │ │ ├── SpanExporterBase.cs │ │ │ ├── SpanExporterWorker.cs │ │ │ ├── SpanExtensions.cs │ │ │ ├── TimedEvent.cs │ │ │ └── TimedEvents.cs │ │ │ ├── Internal │ │ │ └── RandomGenerator.cs │ │ │ ├── Link.cs │ │ │ ├── LinkType.cs │ │ │ ├── MessageEvent.cs │ │ │ ├── MessageEventBuilder.cs │ │ │ ├── MessageEventType.cs │ │ │ ├── NoopSpanBuilder.cs │ │ │ ├── NoopTraceComponent.cs │ │ │ ├── NoopTracer.cs │ │ │ ├── Propagation │ │ │ ├── B3Format.cs │ │ │ ├── BinaryFormat.cs │ │ │ ├── BinaryFormatBase.cs │ │ │ ├── NoopBinaryFormat.cs │ │ │ ├── NoopPropagationComponent.cs │ │ │ ├── NoopTextFormat.cs │ │ │ ├── PropagationComponent.cs │ │ │ ├── PropagationComponentBase.cs │ │ │ ├── SpanContextParseException.cs │ │ │ └── TextFormatBase.cs │ │ │ ├── Sampler │ │ │ ├── AlwaysSampleSampler.cs │ │ │ ├── NeverSampleSampler.cs │ │ │ ├── ProbabilitySampler.cs │ │ │ └── Samplers.cs │ │ │ ├── Span.cs │ │ │ ├── SpanAttributeConstants.cs │ │ │ ├── SpanBase.cs │ │ │ ├── SpanBuilder.cs │ │ │ ├── SpanBuilderBase.cs │ │ │ ├── SpanBuilderOptions.cs │ │ │ ├── SpanContext.cs │ │ │ ├── SpanExtensions.cs │ │ │ ├── SpanId.cs │ │ │ ├── SpanOptions.cs │ │ │ ├── StartEndHandler.cs │ │ │ ├── Status.cs │ │ │ ├── TraceComponent.cs │ │ │ ├── TraceComponentBase.cs │ │ │ ├── TraceEvents.cs │ │ │ ├── TraceId.cs │ │ │ ├── TraceOptions.cs │ │ │ ├── TraceOptionsBuilder.cs │ │ │ ├── Tracer.cs │ │ │ ├── TracerBase.cs │ │ │ ├── Tracing.cs │ │ │ └── Unsafe │ │ │ ├── AsyncLocalContext.cs │ │ │ └── IAsyncLocalContextListener.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Steeltoe.Management.OpenCensus.csproj │ └── Utils │ │ ├── Arrays.cs │ │ ├── AttributesWithCapacity.cs │ │ ├── CanonicalCodeExtensions.cs │ │ ├── Collections.cs │ │ ├── ConcurrentIntrusiveList.cs │ │ ├── DefaultEventQueue.cs │ │ ├── DoubleUtil.cs │ │ ├── EvictingQueue.cs │ │ ├── IElement.cs │ │ └── StringUtil.cs ├── Steeltoe.Management.OpenCensusBase │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Stats │ │ ├── IStats.cs │ │ ├── MeasureUnit.cs │ │ └── OpenCensusStats.cs │ ├── Steeltoe.Management.OpenCensusBase.csproj │ ├── Tags │ │ ├── ITags.cs │ │ └── OpenCensusTags.cs │ └── Trace │ │ ├── ITracing.cs │ │ ├── ITracingOptions.cs │ │ ├── OpenCensusTracing.cs │ │ ├── Propagation │ │ ├── B3Constants.cs │ │ ├── B3PropagationComponent.cs │ │ └── ThrowsBinaryFormat.cs │ │ ├── SpanAttributeConstants.cs │ │ └── SpanExtensions.cs ├── Steeltoe.Management.TracingBase │ ├── Observer │ │ ├── HttpClientCoreObserver.cs │ │ ├── HttpClientDesktopObserver.cs │ │ └── HttpClientTracingObserver.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Steeltoe.Management.TracingBase.csproj │ ├── TracingLogProcessor.cs │ └── TracingOptions.cs └── Steeltoe.Management.TracingCore │ ├── Observer │ ├── AspNetCoreHostingObserver.cs │ ├── AspNetCoreMvcActionObserver.cs │ ├── AspNetCoreMvcViewObserver.cs │ └── AspNetCoreTracingObserver.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── Steeltoe.Management.TracingCore.csproj │ ├── TracingService.cs │ └── TracingServiceCollectionExtensions.cs ├── stylecop.json ├── targetframework.props ├── test ├── Steeltoe.Management.CloudFoundryCore.Test │ ├── CloudFoundryApplicationBuilderExtensionsTest.cs │ ├── CloudFoundryServiceCollectionExtensionsTest.cs │ └── Steeltoe.Management.CloudFoundryCore.Test.csproj ├── Steeltoe.Management.EndpointBase.Test │ ├── AbstractEndpointTest.cs │ ├── AbstractOptionsTest.cs │ ├── BaseTest.cs │ ├── CloudFoundry │ │ ├── CloudFoundryEndpointTest.cs │ │ ├── CloudFoundryOptionsTest.cs │ │ ├── SecurityBaseTest.cs │ │ └── git.properties │ ├── Env │ │ ├── EnvEndpointTest.cs │ │ ├── EnvOptionsTest.cs │ │ ├── EnvironmentDescriptorTest.cs │ │ ├── PropertySourceDescriptorTest.cs │ │ └── PropertyValueDescriptorTest.cs │ ├── Health │ │ ├── Contributor │ │ │ ├── DiskSpaceContributorOptionsTest.cs │ │ │ └── DiskSpaceContributorTest.cs │ │ ├── DefaultHealthAggregatorTest.cs │ │ ├── HealthData.cs │ │ ├── HealthEndpointTest.cs │ │ ├── HealthOptionsTest.cs │ │ ├── HealthTest.cs │ │ └── MockContributors │ │ │ ├── DownContributor.cs │ │ │ ├── OutOfSserviceContributor.cs │ │ │ ├── TestContrib.cs │ │ │ ├── UnknownContributor.cs │ │ │ └── UpContributor.cs │ ├── HeapDump │ │ ├── HeapDumpEndpointTest.cs │ │ └── HeapDumpOptionsTest.cs │ ├── Hypermedia │ │ ├── ActuatorHypermediaOptionsTest.cs │ │ ├── HypermediaEndpointTest.cs │ │ └── git.properties │ ├── Info │ │ ├── AppSettingsInfoContributorTest.cs │ │ ├── Contributor │ │ │ ├── AppSettingsInfoContributorTest.cs │ │ │ └── GitInfoContributorTest.cs │ │ ├── GitInfoContributorTest.cs │ │ ├── InfoBuilderTest.cs │ │ ├── InfoEndpointTest.cs │ │ ├── InfoOptionsTest.cs │ │ ├── TestContrib.cs │ │ ├── empty.git.properties │ │ ├── garbage.git.properties │ │ └── git.properties │ ├── Loggers │ │ ├── LoggerLevelsTest.cs │ │ ├── LoggersChangeRequestTest.cs │ │ ├── LoggersEndpointTest.cs │ │ ├── LoggersOptionsTest.cs │ │ └── TestLogProvider.cs │ ├── ManagementOptionsTest.cs │ ├── Mappings │ │ ├── ApplicationMappingsTest.cs │ │ ├── ContextMappingsTest.cs │ │ ├── MappingDescriptionTest.cs │ │ ├── MappingsOptionsTest.cs │ │ └── TestRouteDetails.cs │ ├── Metrics │ │ ├── MetricSampleTest.cs │ │ ├── MetricTagTest.cs │ │ ├── MetricsEndpointTest.cs │ │ ├── MetricsListNamesResponseTest.cs │ │ ├── MetricsOptionsTest.cs │ │ ├── MetricsRequestTest.cs │ │ ├── MetricsResponseTest.cs │ │ └── Observer │ │ │ ├── CLRRuntimeObserverTest.cs │ │ │ ├── CLRRuntimeSourceTest.cs │ │ │ ├── HttpClientCoreObserverTest.cs │ │ │ └── HttpClientDesktopObserverTest.cs │ ├── Middleware │ │ └── EndpointMiddlewareTest.cs │ ├── Refresh │ │ ├── RefreshEndpointTest.cs │ │ └── RefreshOptionsTest.cs │ ├── Steeltoe.Management.EndpointBase.Test.csproj │ ├── TestEndpoint.cs │ ├── TestHelpers.cs │ ├── TestOptions.cs │ ├── TestOptions2.cs │ ├── ThreadDump │ │ ├── TestThreadDumper.cs │ │ ├── ThreadDumpEndpointTest.cs │ │ └── ThreadDumpOptionsTest.cs │ ├── Trace │ │ ├── TestTraceEndpoint.cs │ │ ├── TestTraceRepo.cs │ │ ├── TraceEndpointTest.cs │ │ └── TraceOptionsTest.cs │ ├── empty.git.properties │ ├── garbage.git.properties │ ├── git.properties │ └── xunit.runner.json ├── Steeltoe.Management.EndpointCore.Test │ ├── CloudFoundry │ │ ├── CloudFoundrySecurityMiddlewareTest.cs │ │ ├── EndpointApplicationBuilderExtensionsTest.cs │ │ ├── EndpointMiddlewareTest.cs │ │ ├── EndpointServiceCollectionTest.cs │ │ ├── Startup.cs │ │ ├── StartupWithSecurity.cs │ │ └── TestCloudFoundryEndpoint.cs │ ├── Env │ │ ├── EndpointApplicationBuilderExtensionsTest.cs │ │ ├── EndpointMiddlewareTest.cs │ │ ├── EndpointServiceCollectionTest.cs │ │ └── Startup.cs │ ├── Health │ │ ├── AuthStartup.cs │ │ ├── AuthenticatedTestMiddleware.cs │ │ ├── EndpointApplicationBuilderExtensionsTest.cs │ │ ├── EndpointMiddlewareTest.cs │ │ ├── EndpointServiceCollectionTest.cs │ │ ├── HealthEndpointTest.cs │ │ ├── Startup.cs │ │ ├── TestContributor.cs │ │ ├── TestHealthCheck.cs │ │ └── TestHealthEndpoint.cs │ ├── HeapDump │ │ ├── EndpointApplicationBuilderExtensionsTest.cs │ │ ├── EndpointMiddlewareTest.cs │ │ ├── EndpointServiceCollectionTest.cs │ │ └── Startup.cs │ ├── Hypermedia │ │ ├── EndpointApplicationBuilderExtensionsTest.cs │ │ ├── EndpointMiddlewareTest.cs │ │ ├── EndpointServiceCollectionTest.cs │ │ ├── Startup.cs │ │ ├── StartupWithSecurity.cs │ │ └── TestHypermediaEndpoint.cs │ ├── Info │ │ ├── EndpointApplicationBuilderExtensionsTest.cs │ │ ├── EndpointMiddlewareTest.cs │ │ ├── EndpointServiceCollectionTest.cs │ │ ├── Startup.cs │ │ ├── TestInfoContributor.cs │ │ ├── TestInfoEndpoint.cs │ │ ├── TestLogger.cs │ │ ├── empty.git.properties │ │ ├── garbage.git.properties │ │ └── git.properties │ ├── Loggers │ │ ├── EndpointApplicationBuilderExtensionsTest.cs │ │ ├── EndpointMiddlewareTest.cs │ │ ├── EndpointServiceCollectionTest.cs │ │ ├── Startup.cs │ │ └── TestLoggersEndpoint.cs │ ├── Mappings │ │ ├── EndpointApplicationBuilderExtensionsTest.cs │ │ ├── EndpointMiddlewareTest.cs │ │ ├── EndpointServiceCollectionTest.cs │ │ ├── HomeController.cs │ │ ├── Person.cs │ │ └── Startup.cs │ ├── Metrics │ │ ├── EndpointServiceCollectionExtensionsTest.cs │ │ ├── MetricsEndpointMiddlewareTest.cs │ │ └── Observer │ │ │ └── AspNetCoreHostingObserverTest.cs │ ├── Refresh │ │ ├── EndpointApplicationBuilderExtensionsTest.cs │ │ ├── EndpointMiddlewareTest.cs │ │ ├── EndpointServiceCollectionTest.cs │ │ └── Startup.cs │ ├── Security │ │ ├── SecureStartup.cs │ │ ├── SetsUserInContextForTestsMiddleware.cs │ │ └── Startup.cs │ ├── Steeltoe.Management.EndpointCore.Test.csproj │ ├── TestHelpers.cs │ ├── ThreadDump │ │ ├── EndpointApplicationBuilderExtensionsTest.cs │ │ ├── EndpointMiddlewareTest.cs │ │ ├── EndpointServiceCollectionTest.cs │ │ └── Startup.cs │ ├── Trace │ │ ├── EndpointApplicationBuilderExtensionsTest.cs │ │ ├── EndpointMiddlewareTest.cs │ │ ├── EndpointServiceCollectionTest.cs │ │ ├── MyIdentity.cs │ │ ├── SessionFeature.cs │ │ ├── Startup.cs │ │ ├── TestSession.cs │ │ ├── TestTraceEndpoint.cs │ │ └── TraceDiagnosticObserverTest.cs │ ├── empty.git.properties │ ├── garbage.git.properties │ ├── git.properties │ └── xunit.runner.json ├── Steeltoe.Management.EndpointOwin.Test │ ├── CloudFoundry │ │ ├── CloudFoundryEndpointAppBuilderExtensionsTest.cs │ │ ├── CloudFoundryEndpointOwinMiddlewareTest.cs │ │ ├── CloudFoundrySecurityAppBuilderExtensionsTest.cs │ │ ├── CloudFoundrySecurityMiddlewareTest.cs │ │ ├── Startup.cs │ │ ├── StartupWithSecurity.cs │ │ └── TestCloudFoundryEndpoint.cs │ ├── Env │ │ ├── EnvEndpointAppBuilderExtensionsTest.cs │ │ ├── EnvOwinMiddlewareTest.cs │ │ └── Startup.cs │ ├── Health │ │ ├── HealthEndpointAppBuilderExtensionsTest.cs │ │ ├── HealthEndpointOwinMiddlewareTest.cs │ │ ├── Startup.cs │ │ └── TestHealthEndpoint.cs │ ├── HeapDump │ │ ├── HeapDumpEndpointAppBuilderExtensionsTest.cs │ │ ├── HeapDumpEndpointOwinMiddlewareTest.cs │ │ └── Startup.cs │ ├── Hypermedia │ │ ├── ActuatorSecurityMiddlewareTest.cs │ │ ├── HypermediaEndpointAppBuilderExtensionsTest.cs │ │ ├── HypermediaEndpointOwinMiddlewareTest.cs │ │ ├── Startup.cs │ │ ├── StartupWithSecurity.cs │ │ └── TestActuatorHypermediaEndpoint.cs │ ├── Info │ │ ├── InfoEndpointAppBuilderExtensionsTest.cs │ │ ├── InfoEndpointOwinMiddlewareTest.cs │ │ ├── Startup.cs │ │ └── TestInfoEndpoint.cs │ ├── Loggers │ │ ├── LoggersEndpointAppBuilderExtensionsTest.cs │ │ ├── LoggersEndpointOwinMiddlewareTest.cs │ │ ├── Startup.cs │ │ └── TestLoggersEndpoint.cs │ ├── Metrics │ │ ├── MetricsEndpointAppBuilderExtensionsTest.cs │ │ ├── MetricsEndpointOwinMiddlewareTest.cs │ │ └── Startup.cs │ ├── OwinTestHelpers.cs │ ├── Refresh │ │ ├── RefreshEndpointAppBuilderExtensionsTest.cs │ │ ├── RefreshEndpointOwinMiddlewareTest.cs │ │ └── Startup.cs │ ├── Security │ │ ├── AuthenticationTestMiddleware.cs │ │ ├── SecureStartup.cs │ │ └── Startup.cs │ ├── Steeltoe.Management.EndpointOwin.Test.csproj │ ├── ThreadDump │ │ ├── Startup.cs │ │ ├── ThreadDumpEndpointAppBuilderExtensionsTest.cs │ │ └── ThreadDumpEndpointOwinMiddlewareTest.cs │ ├── Trace │ │ ├── MyIdentity.cs │ │ ├── Startup.cs │ │ ├── TestTraceEndpoint.cs │ │ ├── TraceEndpointAppBuilderExtensionsTest.cs │ │ └── TraceEndpointOwinMiddlewareTest.cs │ ├── empty.git.properties │ ├── garbage.git.properties │ ├── git.properties │ └── xunit.runner.json ├── Steeltoe.Management.EndpointOwinAutofac.Test │ ├── Actuators │ │ ├── CloudFoundryContainerBuilderExtensionsTest.cs │ │ ├── EnvContainerBuilderExtensionsTest.cs │ │ ├── HealthContainerBuilderExtensionsTest.cs │ │ ├── HeapDumpContainerBuilderExtensionsTest.cs │ │ ├── InfoContainerBuilderExtensionsTest.cs │ │ ├── LoggersContainerBuilderExtensionsTest.cs │ │ ├── MappingsContainerBuilderExtensionsTest.cs │ │ ├── MetricsContainerBuilderExtensionsTest.cs │ │ ├── RefreshContainerBuilderExtensionsTest.cs │ │ ├── ThreadDumpContainerBuilderExtensionsTest.cs │ │ └── TraceContainerBuilderExtensionsTest.cs │ ├── Steeltoe.Management.EndpointOwinAutofac.Test.csproj │ └── xunit.runner.json ├── Steeltoe.Management.EndpointWeb.Test │ ├── ActuatorHandlerTest.cs │ ├── DefaultTestSettingsConfig.cs │ ├── ManagementConfig.cs │ ├── Steeltoe.Management.EndpointWeb.Test.csproj │ ├── TestServer │ │ ├── Settings.cs │ │ ├── TestHttpClient.cs │ │ ├── TestRequest.cs │ │ ├── TestResponse.cs │ │ ├── TestServer.cs │ │ └── TestUser.cs │ ├── empty.git.properties │ ├── garbage.git.properties │ ├── git.properties │ ├── stylecop.json │ └── xunit.runner.json ├── Steeltoe.Management.ExporterBase.Test │ ├── Metrics │ │ └── CloudFoundryForwarder │ │ │ ├── ApplicationTest.cs │ │ │ ├── BaseTest.cs │ │ │ ├── CloudFoundryForwarderExporterTest.cs │ │ │ ├── CloudFoundryForwarderOptionsTest.cs │ │ │ ├── InstanceTest.cs │ │ │ ├── MessageTest.cs │ │ │ ├── MetricTest.cs │ │ │ ├── MicrometerMetricWriterTest.cs │ │ │ ├── OpenCensusStats.cs │ │ │ └── SpringBootMetricWriterTest.cs │ ├── Steeltoe.Management.ExporterBase.Test.csproj │ ├── Tracing │ │ └── Zipkin │ │ │ └── TraceExporterOptionsTest.cs │ └── xunit.runner.json ├── Steeltoe.Management.ExporterCore.Test │ ├── Steeltoe.Management.ExporterCore.Test.csproj │ ├── Tracing │ │ └── Zipkin │ │ │ └── ZipkinExporterServiceCollectionExtensionsTest.cs │ └── xunit.runner.json ├── Steeltoe.Management.OpenCensus.Test │ ├── Impl │ │ ├── Common │ │ │ ├── DurationTest.cs │ │ │ └── TimestampTest.cs │ │ ├── Internal │ │ │ └── TimestampConverterTest.cs │ │ ├── Stats │ │ │ ├── AggregationDataTest.cs │ │ │ ├── AggregationTest.cs │ │ │ ├── BucketBoundariesTest.cs │ │ │ ├── CurrentStatsStateTest.cs │ │ │ ├── MeasureMapBuilderTest.cs │ │ │ ├── MeasureTest.cs │ │ │ ├── MeasureToViewMapTest.cs │ │ │ ├── MutableAggregationTest.cs │ │ │ ├── MutableViewDataTest.cs │ │ │ ├── NoopStatsTest.cs │ │ │ ├── NoopViewManagerTest.cs │ │ │ ├── QuickStartExampleTest.cs │ │ │ ├── StatsComponentTest.cs │ │ │ ├── StatsDefaultTest.cs │ │ │ ├── StatsRecorderTest.cs │ │ │ ├── StatsTest.cs │ │ │ ├── StatsTestUtil.cs │ │ │ ├── ViewDataTest.cs │ │ │ ├── ViewManagerTest.cs │ │ │ └── ViewTest.cs │ │ ├── Tags │ │ │ ├── CurrentTagContextUtilsTest.cs │ │ │ ├── CurrentTaggingStateTest.cs │ │ │ ├── NoopTagsTest.cs │ │ │ ├── Propagation │ │ │ │ ├── TagContextBinarySerializerTest.cs │ │ │ │ ├── TagContextDeserializationExceptionTest.cs │ │ │ │ ├── TagContextDeserializationTest.cs │ │ │ │ ├── TagContextRoundtripTest.cs │ │ │ │ ├── TagContextSerializationExceptionTest.cs │ │ │ │ └── TagContextSerializationTest.cs │ │ │ ├── ScopedTagContextsTest.cs │ │ │ ├── TagContextBaseTest.cs │ │ │ ├── TagContextTest.cs │ │ │ ├── TagKeyTest.cs │ │ │ ├── TagTest.cs │ │ │ ├── TagValueTest.cs │ │ │ ├── TaggerTest.cs │ │ │ ├── TagsComponentBaseTest.cs │ │ │ ├── TagsDefaultTest.cs │ │ │ ├── TagsTest.cs │ │ │ └── TagsTestUtil.cs │ │ ├── Testing │ │ │ ├── Common │ │ │ │ └── TestClock.cs │ │ │ └── Export │ │ │ │ └── TestHandler.cs │ │ └── Trace │ │ │ ├── AnnotationTest.cs │ │ │ ├── AttributeValueTest.cs │ │ │ ├── BlankSpanTest.cs │ │ │ ├── Config │ │ │ ├── TraceConfigBaseTest.cs │ │ │ ├── TraceConfigTest.cs │ │ │ └── TraceParamsTest.cs │ │ │ ├── CurrentSpanUtilsTest.cs │ │ │ ├── EndSpanOptionsTest.cs │ │ │ ├── Export │ │ │ ├── ExportComponentBaseTest.cs │ │ │ ├── ExportComponentTest.cs │ │ │ ├── InProcessRunningSpanStoreTest.cs │ │ │ ├── InProcessSampledSpanStoreTest.cs │ │ │ ├── NoopRunningSpanStoreTest.cs │ │ │ ├── NoopSampledSpanStoreTest.cs │ │ │ ├── SpanDataTest.cs │ │ │ └── SpanExporterTest.cs │ │ │ ├── Internal │ │ │ └── ConcurrentIntrusiveListTest.cs │ │ │ ├── LinkTest.cs │ │ │ ├── MessageEventTest.cs │ │ │ ├── NoopSpan.cs │ │ │ ├── Propagation │ │ │ ├── B3FormatTest.cs │ │ │ ├── BinaryFormatBaseTest.cs │ │ │ ├── BinaryFormatTest.cs │ │ │ ├── PropagationComponentBaseTest.cs │ │ │ ├── PropagationComponentTest.cs │ │ │ ├── SpanContextParseExceptionTest.cs │ │ │ └── TextFormatBaseTest.cs │ │ │ ├── Sampler │ │ │ └── SamplersTest.cs │ │ │ ├── SpanBaseTest.cs │ │ │ ├── SpanBuilderBaseTest.cs │ │ │ ├── SpanBuilderTest.cs │ │ │ ├── SpanContextTest.cs │ │ │ ├── SpanIdTest.cs │ │ │ ├── SpanTest.cs │ │ │ ├── StatusTest.cs │ │ │ ├── TraceComponentBaseTest.cs │ │ │ ├── TraceComponentTest.cs │ │ │ ├── TraceIdTest.cs │ │ │ ├── TraceOptionsTest.cs │ │ │ ├── TracerBaseTest.cs │ │ │ ├── TracerTest.cs │ │ │ └── TracingTest.cs │ ├── Steeltoe.Management.OpenCensus.Test.csproj │ └── xunit.runner.json ├── Steeltoe.Management.TracingBase.Test │ ├── Observer │ │ ├── AbstractObserverTest.cs │ │ ├── HttpClientCoreObserverTest.cs │ │ └── HttpClientDesktopObserverTest.cs │ ├── OpernCensusTracingTest.cs │ ├── Steeltoe.Management.TracingBase.Test.csproj │ ├── TracingLogProcessorTest.cs │ ├── TracingOptionsTest.cs │ └── xunit.runner.json ├── Steeltoe.Management.TracingCore.Test │ ├── Observer │ │ ├── AspNetCoreHostingObserverTest.cs │ │ ├── AspNetCoreMvcActionObserverTest.cs │ │ └── AspNetCoreMvcViewObserverTest.cs │ ├── Steeltoe.Management.TracingCore.Test.csproj │ ├── TestBase.cs │ ├── TracingServiceCollectionExtensionsTest.cs │ └── xunit.runner.json └── Steeltoe.Managment.CloudFoundryTasks.Test │ ├── CloudFoundryTaskRunTest.cs │ └── Steeltoe.Managment.CloudFoundryTasks.Test.csproj └── versions.props /.gitattributes: -------------------------------------------------------------------------------- 1 | *.doc diff=astextplain 2 | *.DOC diff=astextplain 3 | *.docx diff=astextplain 4 | *.DOCX diff=astextplain 5 | *.dot diff=astextplain 6 | *.DOT diff=astextplain 7 | *.pdf diff=astextplain 8 | *.PDF diff=astextplain 9 | *.rtf diff=astextplain 10 | *.RTF diff=astextplain 11 | 12 | *.jpg binary 13 | *.png binary 14 | *.gif binary 15 | 16 | *.cs text=auto diff=csharp 17 | *.vb text=auto 18 | *.resx text=auto 19 | *.c text=auto 20 | *.cpp text=auto 21 | *.cxx text=auto 22 | *.h text=auto 23 | *.hxx text=auto 24 | *.py text=auto 25 | *.rb text=auto 26 | *.java text=auto 27 | *.html text=auto 28 | *.htm text=auto 29 | *.css text=auto 30 | *.scss text=auto 31 | *.sass text=auto 32 | *.less text=auto 33 | *.js text=auto 34 | *.lisp text=auto 35 | *.clj text=auto 36 | *.sql text=auto 37 | *.php text=auto 38 | *.lua text=auto 39 | *.m text=auto 40 | *.asm text=auto 41 | *.erl text=auto 42 | *.fs text=auto 43 | *.fsx text=auto 44 | *.hs text=auto 45 | 46 | *.csproj text=auto 47 | *.vbproj text=auto 48 | *.fsproj text=auto 49 | *.dbproj text=auto 50 | *.sln text=auto eol=crlf 51 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: csharp 2 | dist: trusty 3 | env: 4 | TestFrameworkVersion: netcoreapp2.1 5 | STEELTOE_VERSION: 2.2.0 6 | global: 7 | - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true 8 | - DOTNET_CLI_TELEMETRY_OPTOUT: 1 9 | mono: none 10 | dotnet: 2.1.403 11 | os: 12 | - linux 13 | - osx 14 | osx_image: xcode8.3 15 | branches: 16 | only: 17 | - master 18 | - dev 19 | - /^update[0-9]{2}x/ 20 | script: 21 | - ./steeltoe-ci/scripts/travis_install.sh 22 | - ./steeltoe-ci/scripts/travis_build.sh 23 | - ./steeltoe-ci/scripts/travis_test.sh 24 | before_install: 25 | - git clone https://github.com/SteeltoeOSS/steeltoe-ci.git -v 26 | - if [ "$TRAVIS_OS_NAME" = "osx" ]; then ulimit -n 1024; fi 27 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | If you have not previously done so, please fill out and 2 | submit the [Contributor License Agreement](https://cla.pivotal.io/sign/pivotal). 3 | -------------------------------------------------------------------------------- /nuget.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.CloudFoundryTasks/DelegatingTask.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Steeltoe.Common.Tasks; 16 | using System; 17 | 18 | namespace Steeltoe.Management.CloudFoundryTasks 19 | { 20 | public class DelegatingTask : IApplicationTask 21 | { 22 | private readonly Action _run; 23 | 24 | public DelegatingTask(string name, Action run) 25 | { 26 | _run = run; 27 | Name = name; 28 | } 29 | 30 | public string Name { get; } 31 | 32 | public void Run() => _run(); 33 | } 34 | } -------------------------------------------------------------------------------- /src/Steeltoe.Management.Diagnostics/Microsoft/MemoryReadException.cs: -------------------------------------------------------------------------------- 1 | // This file isn't generated, but this comment is necessary to exclude it from StyleCop analysis. 2 | // 3 | 4 | // Copyright (c) Microsoft. All rights reserved. 5 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 6 | 7 | using System.IO; 8 | 9 | namespace Microsoft.Diagnostics.Runtime 10 | { 11 | /// 12 | /// Thrown when we fail to read memory from the target process. 13 | /// 14 | internal class MemoryReadException : IOException 15 | { 16 | /// 17 | /// The address of memory that could not be read. 18 | /// 19 | public ulong Address { get; private set; } 20 | 21 | /// 22 | /// Constructor 23 | /// 24 | /// The address of memory that could not be read. 25 | public MemoryReadException(ulong address) 26 | : base(string.Format("Could not read memory at {0:x}.", address)) 27 | { 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.Diagnostics/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Runtime.CompilerServices; 16 | 17 | [assembly: InternalsVisibleTo("Steeltoe.Management.EndpointBase")] 18 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/CloudFoundry/ICloudFoundryOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.CloudFoundry 16 | { 17 | public interface ICloudFoundryOptions : IEndpointOptions 18 | { 19 | bool ValidateCertificates { get; } 20 | 21 | string ApplicationId { get; } 22 | 23 | string CloudFoundryApi { get; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Env/IEnvOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Env 16 | { 17 | public interface IEnvOptions : IEndpointOptions 18 | { 19 | string[] KeysToSanitize { get; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Health/IHealthAggregator.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Steeltoe.Common.HealthChecks; 16 | using System.Collections.Generic; 17 | 18 | namespace Steeltoe.Management.Endpoint.Health 19 | { 20 | public interface IHealthAggregator 21 | { 22 | HealthCheckResult Aggregate(IList contributors); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Health/IHealthOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Steeltoe.Management.Endpoint.Security; 16 | 17 | namespace Steeltoe.Management.Endpoint.Health 18 | { 19 | public interface IHealthOptions : IEndpointOptions 20 | { 21 | ShowDetails ShowDetails { get; set; } 22 | 23 | EndpointClaim Claim { get; set; } 24 | 25 | string Role { get; set; } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Health/ShowDetails.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Health 16 | { 17 | public enum ShowDetails 18 | { 19 | Always, 20 | Never, 21 | WhenAuthorized 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/HeapDump/IHeapDumpOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.HeapDump 16 | { 17 | public interface IHeapDumpOptions : IEndpointOptions 18 | { 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/HeapDump/IHeapDumper.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.HeapDump 16 | { 17 | public interface IHeapDumper 18 | { 19 | string DumpHeap(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Hypermedia/IActuatorHypermediaOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Hypermedia 16 | { 17 | public interface IActuatorHypermediaOptions : IEndpointOptions 18 | { 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/IManagementOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System; 16 | using System.Collections.Generic; 17 | 18 | namespace Steeltoe.Management.Endpoint 19 | { 20 | public interface IManagementOptions 21 | { 22 | bool? Enabled { get; } 23 | 24 | [Obsolete] 25 | bool? Sensitive { get; } 26 | 27 | string Path { get; } 28 | 29 | List EndpointOptions { get; } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Info/IInfoBuilder.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Collections.Generic; 16 | 17 | namespace Steeltoe.Management.Endpoint.Info 18 | { 19 | public interface IInfoBuilder 20 | { 21 | IInfoBuilder WithInfo(string key, object value); 22 | 23 | IInfoBuilder WithInfo(Dictionary details); 24 | 25 | Dictionary Build(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Info/IInfoContributor.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Info 16 | { 17 | public interface IInfoContributor 18 | { 19 | void Contribute(IInfoBuilder builder); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Info/IInfoOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Info 16 | { 17 | public interface IInfoOptions : IEndpointOptions 18 | { 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Loggers/ILoggersOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Loggers 16 | { 17 | public interface ILoggersOptions : IEndpointOptions 18 | { 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Mappings/IMappingsOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Mappings 16 | { 17 | public interface IMappingsOptions : IEndpointOptions 18 | { 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Mappings/IRouteDetails.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Collections.Generic; 16 | 17 | namespace Steeltoe.Management.Endpoint.Mappings 18 | { 19 | public interface IRouteDetails 20 | { 21 | IList HttpMethods { get; } 22 | 23 | string RouteTemplate { get; } 24 | 25 | IList Produces { get; } 26 | 27 | IList Consumes { get; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/MediaTypeVersion.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint 16 | { 17 | public enum MediaTypeVersion 18 | { 19 | V1, 20 | V2 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Metrics/IMetricsOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Metrics 16 | { 17 | public interface IMetricsOptions : IEndpointOptions 18 | { 19 | string IngressIgnorePattern { get; } 20 | 21 | string EgressIgnorePattern { get; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Metrics/IMetricsResponse.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Metrics 16 | { 17 | public interface IMetricsResponse 18 | { 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Metrics/MetricStatistic.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Runtime.Serialization; 16 | 17 | namespace Steeltoe.Management.Endpoint.Metrics 18 | { 19 | public enum MetricStatistic 20 | { 21 | TOTAL, 22 | [EnumMember(Value = "TOTAL_TIME")] 23 | TOTALTIME, 24 | COUNT, 25 | MAX, 26 | VALUE, 27 | UNKNOWN, 28 | ACTIVETASKS, 29 | DURATION, 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Metrics/MetricsListNamesResponse.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Newtonsoft.Json; 16 | using System.Collections.Generic; 17 | 18 | namespace Steeltoe.Management.Endpoint.Metrics 19 | { 20 | public class MetricsListNamesResponse : IMetricsResponse 21 | { 22 | [JsonProperty("names")] 23 | public ISet Names { get; } 24 | 25 | public MetricsListNamesResponse(ISet names) 26 | { 27 | Names = names; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Metrics/MetricsRequest.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Collections.Generic; 16 | 17 | namespace Steeltoe.Management.Endpoint.Metrics 18 | { 19 | public class MetricsRequest 20 | { 21 | public string MetricName { get; } 22 | 23 | public List> Tags { get; } 24 | 25 | public MetricsRequest(string metricName, List> tags) 26 | { 27 | MetricName = metricName; 28 | Tags = tags; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Refresh/IRefreshOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Refresh 16 | { 17 | public interface IRefreshOptions : IEndpointOptions 18 | { 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Security/EndpointClaim.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Security 16 | { 17 | public class EndpointClaim 18 | { 19 | public string Type { get; set; } 20 | 21 | public string Value { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Security/ISecurityContext.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Security 16 | { 17 | public interface ISecurityContext 18 | { 19 | bool HasClaim(EndpointClaim claim); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Security/Permissions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Security 16 | { 17 | public enum Permissions 18 | { 19 | UNDEFINED, 20 | NONE, 21 | RESTRICTED, 22 | FULL 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/ThreadDump/IThreadDumpOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.ThreadDump 16 | { 17 | public interface IThreadDumpOptions : IEndpointOptions 18 | { 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/ThreadDump/IThreadDumper.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Collections.Generic; 16 | 17 | namespace Steeltoe.Management.Endpoint.ThreadDump 18 | { 19 | public interface IThreadDumper 20 | { 21 | List DumpThreads(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/ThreadDump/LockInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Newtonsoft.Json; 16 | 17 | namespace Steeltoe.Management.Endpoint.ThreadDump 18 | { 19 | public class LockInfo 20 | { 21 | [JsonProperty("className")] 22 | public string ClassName { get; set; } 23 | 24 | [JsonProperty("identityHashCode")] 25 | public int IdentityHashCode { get; set; } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/ThreadDump/MetaDataImportProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Microsoft.DiaSymReader; 16 | 17 | namespace Steeltoe.Management.Endpoint.ThreadDump 18 | { 19 | public class MetaDataImportProvider : IMetadataImportProvider 20 | { 21 | private object _import; 22 | 23 | public MetaDataImportProvider(object import) 24 | { 25 | _import = import; 26 | } 27 | 28 | public object GetMetadataImport() 29 | { 30 | return _import; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/ThreadDump/MonitorInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Newtonsoft.Json; 16 | 17 | namespace Steeltoe.Management.Endpoint.ThreadDump 18 | { 19 | public class MonitorInfo : LockInfo 20 | { 21 | [JsonProperty("lockedStackDepth")] 22 | public int LockedStackDepth { get; set; } 23 | 24 | [JsonProperty("lockedStackFrame")] 25 | public StackTraceElement LockedStackFrame { get; set; } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/ThreadDump/TState.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.ThreadDump 16 | { 17 | public enum TState 18 | { 19 | NEW, 20 | RUNNABLE, 21 | BLOCKED, 22 | WAITING, 23 | TIMED_WAITING, 24 | TERMINATED 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/ThreadDump/ThreadDumpResult.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Newtonsoft.Json; 16 | using Newtonsoft.Json.Converters; 17 | using System.Collections.Generic; 18 | 19 | namespace Steeltoe.Management.Endpoint.ThreadDump 20 | { 21 | public class ThreadDumpResult 22 | { 23 | [JsonProperty("threads")] 24 | public List Threads { get; set; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Trace/IHttpTraceRepository.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Collections.Generic; 16 | 17 | namespace Steeltoe.Management.Endpoint.Trace 18 | { 19 | public interface IHttpTraceRepository 20 | { 21 | HttpTraceResult GetTraces(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointBase/Trace/ITraceRepository.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Collections.Generic; 16 | 17 | namespace Steeltoe.Management.Endpoint.Trace 18 | { 19 | public interface ITraceRepository 20 | { 21 | List GetTraces(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointCore/Mappings/AspNetCoreRouteDetails.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Collections.Generic; 16 | 17 | namespace Steeltoe.Management.Endpoint.Mappings 18 | { 19 | public class AspNetCoreRouteDetails : IRouteDetails 20 | { 21 | public IList HttpMethods { get; set; } 22 | 23 | public string RouteTemplate { get; set; } 24 | 25 | public IList Produces { get; set; } 26 | 27 | public IList Consumes { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointCore/Mappings/IRouteMappings.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Microsoft.AspNetCore.Routing; 16 | using System.Collections.Generic; 17 | 18 | namespace Steeltoe.Management.Endpoint.Mappings 19 | { 20 | public interface IRouteMappings 21 | { 22 | IList Routers { get; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointCore/Mappings/RouteMappings.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Microsoft.AspNetCore.Routing; 16 | using System.Collections.Generic; 17 | 18 | namespace Steeltoe.Management.Endpoint.Mappings 19 | { 20 | public class RouteMappings : IRouteMappings 21 | { 22 | public RouteMappings() 23 | { 24 | Routers = new List(); 25 | } 26 | 27 | public IList Routers { get; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointOwin/Mappings/AspNetRouteDetails.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Collections.Generic; 16 | 17 | namespace Steeltoe.Management.Endpoint.Mappings 18 | { 19 | public class AspNetRouteDetails : IRouteDetails 20 | { 21 | public IList HttpMethods { get; set; } 22 | 23 | public string RouteTemplate { get; set; } 24 | 25 | public IList Produces { get; set; } 26 | 27 | public IList Consumes { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointWeb/AspNetRouteDetails.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Collections.Generic; 16 | 17 | namespace Steeltoe.Management.Endpoint.Mappings 18 | { 19 | public class AspNetRouteDetails : IRouteDetails 20 | { 21 | public IList HttpMethods { get; set; } 22 | 23 | public string RouteTemplate { get; set; } 24 | 25 | public IList Produces { get; set; } 26 | 27 | public IList Consumes { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointWeb/Handler/IActuatorHandler.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Threading.Tasks; 16 | using System.Web; 17 | 18 | namespace Steeltoe.Management.Endpoint.Handler 19 | { 20 | public interface IActuatorHandler 21 | { 22 | void HandleRequest(HttpContextBase context); 23 | 24 | bool RequestVerbAndPathMatch(string httpMethod, string requestPath); 25 | 26 | Task IsAccessAllowed(HttpContextBase context); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.EndpointWeb/Security/ISecurityService.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System; 16 | using System.Collections.Generic; 17 | using System.Linq; 18 | using System.Text; 19 | using System.Threading.Tasks; 20 | using System.Web; 21 | 22 | namespace Steeltoe.Management.Endpoint.Security 23 | { 24 | public interface ISecurityService 25 | { 26 | Task IsAccessAllowed(HttpContextBase context, IEndpointOptions target); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.ExporterBase/Metrics/CloudFoundryForwarder/ICloudFoundryMetricWriter.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using OpenCensus.Stats; 16 | using OpenCensus.Tags; 17 | using System.Collections.Generic; 18 | 19 | namespace Steeltoe.Management.Exporter.Metrics.CloudFoundryForwarder 20 | { 21 | public interface ICloudFoundryMetricWriter 22 | { 23 | IList CreateMetrics(IViewData viewData, IAggregationData aggregation, TagValues tagValues, long timeStamp); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.ExporterBase/Metrics/CloudFoundryForwarder/Message.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Newtonsoft.Json; 16 | using System.Collections.Generic; 17 | 18 | namespace Steeltoe.Management.Exporter.Metrics.CloudFoundryForwarder 19 | { 20 | public class Message 21 | { 22 | public Message(List applications) 23 | { 24 | Applications = applications; 25 | } 26 | 27 | [JsonProperty("applications")] 28 | public IList Applications { get; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.ExporterBase/Metrics/CloudFoundryForwarder/MetricType.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Exporter.Metrics.CloudFoundryForwarder 16 | { 17 | public enum MetricType 18 | { 19 | GAUGE, 20 | COUNTER, 21 | UNKNOWN 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.ExporterBase/Metrics/IMetricsExporter.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Exporter.Metrics 16 | { 17 | public interface IMetricsExporter 18 | { 19 | void Start(); 20 | 21 | void Stop(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.ExporterBase/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Runtime.CompilerServices; 16 | 17 | [assembly: InternalsVisibleTo("Steeltoe.Management.ExporterBase.Test")] -------------------------------------------------------------------------------- /src/Steeltoe.Management.ExporterBase/Tracing/ITraceExporter.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System; 16 | 17 | namespace Steeltoe.Management.Exporter.Tracing 18 | { 19 | [Obsolete("Use OpenCensus project packages")] 20 | public interface ITraceExporter 21 | { 22 | void Start(); 23 | 24 | void Stop(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.ExporterBase/Tracing/Zipkin/ITraceExporterOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Exporter.Tracing.Zipkin 16 | { 17 | public interface ITraceExporterOptions 18 | { 19 | string Endpoint { get; } 20 | 21 | bool ValidateCertificates { get; } 22 | 23 | int TimeoutSeconds { get; } 24 | 25 | string ServiceName { get; } 26 | 27 | bool UseShortTraceIds { get; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.ExporterBase/Tracing/Zipkin/ZipkinSpanKind.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System; 16 | 17 | namespace Steeltoe.Management.Exporter.Tracing.Zipkin 18 | { 19 | [Obsolete("Use OpenCensus project packages")] 20 | internal enum ZipkinSpanKind 21 | { 22 | CLIENT, 23 | SERVER, 24 | PRODUCER, 25 | CONSUMER 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.ExporterCore/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Runtime.CompilerServices; 16 | 17 | [assembly: InternalsVisibleTo("Steeltoe.Management.TracingBase.Test")] -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Common/IClock.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Trace; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Common 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface IClock 10 | { 11 | ITimestamp Now { get; } 12 | long NowNanos { get; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Common/IDuration.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Common 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IDuration : IComparable 9 | { 10 | long Seconds { get; } 11 | int Nanos { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Common/IScope.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Common 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IScope : IDisposable 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Common/ITimestamp.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Common 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ITimestamp : IComparable 9 | { 10 | long Seconds { get; } 11 | int Nanos { get; } 12 | ITimestamp AddNanos(long nanosToAdd); 13 | ITimestamp AddDuration(IDuration duration); 14 | IDuration SubtractTimestamp(ITimestamp timestamp); 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Internal/IEventQueue.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Internal 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IEventQueue 9 | { 10 | void Enqueue(IEventQueueEntry entry); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Internal/IEventQueueEntry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Internal 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IEventQueueEntry 9 | { 10 | void Process(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Internal/ITimestampConverter.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Common; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Internal 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface ITimestampConverter 10 | { 11 | ITimestamp ConvertNanoTime(long nanoTime); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Aggregations/ICount.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Aggregations 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ICount : IAggregation 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Aggregations/ICountData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Aggregations 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ICountData : IAggregationData 9 | { 10 | long Count { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Aggregations/IDistribution.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Aggregations 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IDistribution : IAggregation 9 | { 10 | 11 | IBucketBoundaries BucketBoundaries { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Aggregations/IDistributionData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Aggregations 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IDistributionData : IAggregationData 9 | { 10 | double Mean { get; } 11 | long Count { get; } 12 | double Min { get; } 13 | double Max { get; } 14 | double SumOfSquaredDeviations { get; } 15 | IList BucketCounts { get; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Aggregations/ILastValue.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Aggregations 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ILastValue : IAggregation 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Aggregations/ILastValueDataDouble.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Aggregations 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ILastValueDataDouble : IAggregationData 9 | { 10 | double LastValue { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Aggregations/ILastValueDataLong.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Aggregations 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ILastValueDataLong : IAggregationData 9 | { 10 | long LastValue { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Aggregations/IMean.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Aggregations 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IMean : IAggregation 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Aggregations/IMeanData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Aggregations 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IMeanData : IAggregationData 9 | { 10 | double Mean { get; } 11 | long Count { get; } 12 | double Max { get; } 13 | double Min { get; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Aggregations/ISum.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Aggregations 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISum : IAggregation 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Aggregations/ISumDataDouble.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Aggregations 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISumDataDouble : IAggregationData 9 | { 10 | double Sum { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Aggregations/ISumDataLong.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Aggregations 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISumDataLong : IAggregationData 9 | { 10 | long Sum { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/IAggregation.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Stats.Aggregations; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Stats 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface IAggregation 10 | { 11 | M Match( 12 | Func p0, 13 | Func p1, 14 | Func p2, 15 | Func p3, 16 | Func p4, 17 | Func p6); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/IAggregationData.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Stats.Aggregations; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Stats 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface IAggregationData 10 | { 11 | M Match( 12 | Func p0, 13 | Func p1, 14 | Func p2, 15 | Func p3, 16 | Func p4, 17 | Func p5, 18 | Func p6, 19 | Func defaultFunction); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/IBucketBoundries.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IBucketBoundaries 9 | { 10 | IList Boundaries { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/IMeasure.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Stats.Measures; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Stats 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface IMeasure 10 | { 11 | M Match( 12 | Func p0, 13 | Func p1, 14 | Func defaultFunction); 15 | string Name { get; } 16 | string Description { get; } 17 | string Unit { get; } 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/IMeasureMap.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Stats.Measures; 2 | using Steeltoe.Management.Census.Tags; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | 7 | namespace Steeltoe.Management.Census.Stats 8 | { 9 | [Obsolete("Use OpenCensus project packages")] 10 | public interface IMeasureMap 11 | { 12 | IMeasureMap Put(IMeasureDouble measure, double value); 13 | 14 | 15 | IMeasureMap Put(IMeasureLong measure, long value); 16 | 17 | 18 | void Record(); 19 | 20 | 21 | void Record(ITagContext tags); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/IMeasurement.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Stats.Measurements; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Stats 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface IMeasurement 10 | { 11 | M Match(Func p0, Func p1, Func defaultFunction); 12 | IMeasure Measure { get; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/IStats.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IStats 9 | { 10 | IStatsRecorder StatsRecorder { get; } 11 | IViewManager ViewManager { get; } 12 | StatsCollectionState State { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/IStatsComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IStatsComponent 9 | { 10 | IViewManager ViewManager { get; } 11 | IStatsRecorder StatsRecorder { get; } 12 | StatsCollectionState State { get; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/IStatsRecorder.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IStatsRecorder 9 | { 10 | IMeasureMap NewMeasureMap(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/IView.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Tags; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Stats 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface IView 10 | { 11 | IViewName Name { get; } 12 | string Description { get; } 13 | IMeasure Measure { get; } 14 | IAggregation Aggregation { get; } 15 | IList Columns { get; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/IViewData.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Tags; 2 | using Steeltoe.Management.Census.Common; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | 7 | namespace Steeltoe.Management.Census.Stats 8 | { 9 | [Obsolete("Use OpenCensus project packages")] 10 | public interface IViewData 11 | { 12 | IView View { get; } 13 | IDictionary AggregationMap { get; } 14 | ITimestamp Start { get; } 15 | ITimestamp End { get; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/IViewManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IViewManager 9 | { 10 | ISet AllExportedViews { get; } 11 | IViewData GetView(IViewName view); 12 | void RegisterView(IView view); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/IViewName.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IViewName 9 | { 10 | string AsString { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Measurements/IMeasurementDouble.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Measurements 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IMeasurementDouble : IMeasurement 9 | { 10 | double Value { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Measurements/IMeasurementLong.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Stats.Measures; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Stats.Measurements 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface IMeasurementLong : IMeasurement 10 | { 11 | long Value { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Measures/IMeasureDouble.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Measures 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IMeasureDouble: IMeasure 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/Measures/IMeasureLong.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats.Measures 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IMeasureLong : IMeasure 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Stats/StatsCollectionState.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public enum StatsCollectionState 9 | { 10 | ENABLED, 11 | DISABLED 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Tags/ITag.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Tags 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ITag 9 | { 10 | ITagKey Key { get; } 11 | ITagValue Value { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Tags/ITagContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Tags 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ITagContext : IEnumerable 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Tags/ITagContextBuilder.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Common; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Tags 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface ITagContextBuilder 10 | { 11 | ITagContextBuilder Put(ITagKey key, ITagValue value); 12 | ITagContextBuilder Remove(ITagKey key); 13 | ITagContext Build(); 14 | IScope BuildScoped(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Tags/ITagKey.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Tags 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ITagKey 9 | { 10 | string Name { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Tags/ITagValue.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Tags 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ITagValue 9 | { 10 | string AsString { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Tags/ITagger.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Common; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Tags 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface ITagger 10 | { 11 | ITagContext Empty { get; } 12 | 13 | ITagContext CurrentTagContext { get; } 14 | 15 | ITagContextBuilder EmptyBuilder { get; } 16 | 17 | ITagContextBuilder ToBuilder(ITagContext tags); 18 | 19 | ITagContextBuilder CurrentBuilder { get; } 20 | 21 | IScope WithTagContext(ITagContext tags); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Tags/ITags.cs: -------------------------------------------------------------------------------- 1 |  2 | using Steeltoe.Management.Census.Tags.Propagation; 3 | using System; 4 | 5 | namespace Steeltoe.Management.Census.Tags 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ITags 9 | { 10 | ITagger Tagger { get; } 11 | 12 | ITagPropagationComponent TagPropagationComponent { get; } 13 | 14 | TaggingState State { get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Tags/ITagsComponent.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Tags.Propagation; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Tags 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface ITagsComponent 10 | { 11 | 12 | ITagger Tagger { get; } 13 | 14 | ITagPropagationComponent TagPropagationComponent { get; } 15 | 16 | TaggingState State { get; } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Tags/Propagation/ITagContextBinarySerializer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Tags.Propagation 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ITagContextBinarySerializer 9 | { 10 | byte[] ToByteArray(ITagContext tags); 11 | ITagContext FromByteArray(byte[] bytes); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Tags/Propagation/ITagPropagationComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Tags.Propagation 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ITagPropagationComponent 9 | { 10 | ITagContextBinarySerializer BinarySerializer { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Tags/TaggingState.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Tags 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public enum TaggingState 9 | { 10 | ENABLED, 11 | DISABLED 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Config/ITraceConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Steeltoe.Management.Census.Trace.Config 4 | { 5 | [Obsolete("Use OpenCensus project packages")] 6 | public interface ITraceConfig 7 | { 8 | ITraceParams ActiveTraceParams { get; } 9 | void UpdateActiveTraceParams(ITraceParams traceParams); 10 | } 11 | } -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Config/ITraceParams.cs: -------------------------------------------------------------------------------- 1 |  2 | using System; 3 | 4 | namespace Steeltoe.Management.Census.Trace.Config 5 | { 6 | [Obsolete("Use OpenCensus project packages")] 7 | public interface ITraceParams 8 | { 9 | ISampler Sampler { get; } 10 | int MaxNumberOfAttributes { get; } 11 | int MaxNumberOfAnnotations { get; } 12 | int MaxNumberOfMessageEvents { get; } 13 | int MaxNumberOfLinks { get; } 14 | TraceParamsBuilder ToBuilder(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/IAttributes.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IAttributes 9 | { 10 | IDictionary AttributeMap { get; } 11 | int DroppedAttributesCount { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/IErrorFilter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IErrorFilter 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/IExportComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Steeltoe.Management.Census.Trace.Export 4 | { 5 | [Obsolete("Use OpenCensus project packages")] 6 | public interface IExportComponent 7 | { 8 | ISpanExporter SpanExporter { get; } 9 | IRunningSpanStore RunningSpanStore { get; } 10 | ISampledSpanStore SampledSpanStore { get; } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/IHandler.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IHandler 9 | { 10 | void Export(IList spanDataList); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/ILatencyFilter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ILatencyFilter 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/ILinks.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ILinks 9 | { 10 | IList Links { get; } 11 | int DroppedLinksCount { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/IRunningPerSpanNameSummary.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IRunningPerSpanNameSummary 9 | { 10 | int NumRunningSpans { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/IRunningSpanStore.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IRunningSpanStore 9 | { 10 | IRunningSpanStoreSummary Summary { get; } 11 | IList GetRunningSpans(IRunningSpanStoreFilter filter); 12 | void OnStart(ISpan span); 13 | void OnEnd(ISpan span); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/IRunningSpanStoreFilter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IRunningSpanStoreFilter 9 | { 10 | string SpanName { get; } 11 | int MaxSpansToReturn { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/IRunningSpanStoreSummary.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IRunningSpanStoreSummary 9 | { 10 | IDictionary PerSpanNameSummary { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/ISampledLatencyBucketBoundaries.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISampledLatencyBucketBoundaries 9 | { 10 | long LatencyLowerNs { get; } 11 | long LatencyUpperNs { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/ISampledPerSpanNameSummary.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISampledPerSpanNameSummary 9 | { 10 | IDictionary NumbersOfLatencySampledSpans { get; } 11 | IDictionary NumbersOfErrorSampledSpans { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/ISampledSpanStore.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISampledSpanStore 9 | { 10 | ISampledSpanStoreSummary Summary { get; } 11 | IList GetLatencySampledSpans(ISampledSpanStoreLatencyFilter filter); 12 | IList GetErrorSampledSpans(ISampledSpanStoreErrorFilter filter); 13 | void RegisterSpanNamesForCollection(IList spanNames); 14 | void UnregisterSpanNamesForCollection(IList spanNames); 15 | ISet RegisteredSpanNamesForCollection { get; } 16 | void ConsiderForSampling(ISpan span); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/ISampledSpanStoreErrorFilter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISampledSpanStoreErrorFilter 9 | { 10 | string SpanName { get; } 11 | CanonicalCode? CanonicalCode { get; } 12 | int MaxSpansToReturn { get; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/ISampledSpanStoreLatencyFilter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISampledSpanStoreLatencyFilter 9 | { 10 | string SpanName { get; } 11 | long LatencyLowerNs { get; } 12 | long LatencyUpperNs { get; } 13 | int MaxSpansToReturn { get; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/ISampledSpanStoreSummary.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISampledSpanStoreSummary 9 | { 10 | IDictionary PerSpanNameSummary { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/ISpanData.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Common; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Trace.Export 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface ISpanData 10 | { 11 | ISpanContext Context { get; } 12 | ISpanId ParentSpanId { get; } 13 | bool? HasRemoteParent { get; } 14 | string Name { get; } 15 | ITimestamp StartTimestamp { get; } 16 | IAttributes Attributes { get; } 17 | ITimedEvents Annotations { get; } 18 | ITimedEvents MessageEvents { get; } 19 | ILinks Links { get; } 20 | int? ChildSpanCount { get; } 21 | Status Status { get; } 22 | ITimestamp EndTimestamp { get; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/ISpanExporter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISpanExporter : IDisposable 9 | { 10 | void AddSpan(ISpan span); 11 | void RegisterHandler(string name, IHandler handler); 12 | void UnregisterHandler(string name); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/ITimedEvent.cs: -------------------------------------------------------------------------------- 1 |  2 | 3 | using Steeltoe.Management.Census.Common; 4 | using System; 5 | 6 | namespace Steeltoe.Management.Census.Trace.Export 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface ITimedEvent 10 | { 11 | ITimestamp Timestamp { get; } 12 | T Event { get; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Export/ITimedEvents.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ITimedEvents 9 | { 10 | IList> Events { get; } 11 | int DroppedEventsCount { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/IAnnotation.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IAnnotation 9 | { 10 | string Description { get; } 11 | IDictionary Attributes { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/IAttributeValue.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IAttributeValue 9 | { 10 | T Match( 11 | Func stringFunction, 12 | Func booleanFunction, 13 | Func longFunction, 14 | Func defaultFunction); 15 | } 16 | [Obsolete("Use OpenCensus project packages")] 17 | public interface IAttributeValue : IAttributeValue 18 | { 19 | T Value { get; } 20 | M Apply(Func function); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/ILink.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ILink 9 | { 10 | ITraceId TraceId { get; } 11 | ISpanId SpanId { get; } 12 | LinkType Type { get; } 13 | IDictionary Attributes { get; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/IMessageEvent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IMessageEvent 9 | { 10 | MessageEventType Type { get; } 11 | long MessageId { get; } 12 | long UncompressedMessageSize { get; } 13 | long CompressedMessageSize { get; } 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/ISampler.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISampler 9 | { 10 | string Description { get; } 11 | bool ShouldSample(ISpanContext parentContext, bool hasRemoteParent, ITraceId traceId, ISpanId spanId, string name, IList parentLinks); 12 | 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/ISpan.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISpan 9 | { 10 | ISpanContext Context { get; } 11 | SpanOptions Options { get; } 12 | Status Status { get; set; } 13 | void PutAttribute(string key, IAttributeValue value); 14 | void PutAttributes(IDictionary attributes); 15 | void AddAnnotation(string description); 16 | void AddAnnotation(string description, IDictionary attributes); 17 | void AddAnnotation(IAnnotation annotation); 18 | void AddMessageEvent(IMessageEvent messageEvent); 19 | void AddLink(ILink link); 20 | void End(EndSpanOptions options); 21 | void End(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/ISpanBuilder.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Common; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Trace 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface ISpanBuilder 10 | { 11 | ISpanBuilder SetSampler(ISampler sampler); 12 | ISpanBuilder SetParentLinks(IList parentLinks); 13 | ISpanBuilder SetRecordEvents(bool recordEvents); 14 | ISpan StartSpan(); 15 | IScope StartScopedSpan(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/ISpanContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISpanContext 9 | { 10 | ITraceId TraceId { get; } 11 | ISpanId SpanId { get; } 12 | TraceOptions TraceOptions { get; } 13 | bool IsValid { get; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/ISpanId.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISpanId : IComparable 9 | { 10 | byte[] Bytes { get; } 11 | bool IsValid { get; } 12 | void CopyBytesTo(byte[] dest, int destOffset); 13 | string ToLowerBase16(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/IStartEndHandler.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IStartEndHandler 9 | { 10 | void OnStart(SpanBase span); 11 | 12 | void OnEnd(SpanBase span); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/ITraceComponent.cs: -------------------------------------------------------------------------------- 1 |  2 | 3 | using Steeltoe.Management.Census.Common; 4 | using Steeltoe.Management.Census.Trace.Config; 5 | using Steeltoe.Management.Census.Trace.Export; 6 | using Steeltoe.Management.Census.Trace.Propagation; 7 | using System; 8 | 9 | namespace Steeltoe.Management.Census.Trace 10 | { 11 | [Obsolete("Use OpenCensus project packages")] 12 | public interface ITraceComponent 13 | { 14 | ITracer Tracer { get; } 15 | IPropagationComponent PropagationComponent { get; } 16 | IClock Clock { get; } 17 | IExportComponent ExportComponent { get; } 18 | ITraceConfig TraceConfig { get; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/ITraceId.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ITraceId : IComparable 9 | { 10 | byte[] Bytes { get; } 11 | bool IsValid { get; } 12 | long LowerLong { get; } 13 | void CopyBytesTo(byte[] dest, int destOffset); 14 | string ToLowerBase16(); 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/ITracer.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Common; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Trace 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface ITracer 10 | { 11 | ISpan CurrentSpan { get; } 12 | IScope WithSpan(ISpan span); 13 | // Callable withSpan(Span span, final Callable callable) 14 | //Runnable withSpan(Span span, Runnable runnable) 15 | ISpanBuilder SpanBuilder(string spanName); 16 | ISpanBuilder SpanBuilderWithExplicitParent(string spanName, ISpan parent = null); 17 | ISpanBuilder SpanBuilderWithRemoteParent(string spanName, ISpanContext remoteParentSpanContext = null); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/ITracing.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Trace.Config; 2 | using Steeltoe.Management.Census.Trace.Export; 3 | using Steeltoe.Management.Census.Trace.Propagation; 4 | using System; 5 | 6 | namespace Steeltoe.Management.Census.Trace 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface ITracing 10 | { 11 | ITracer Tracer { get; } 12 | IPropagationComponent PropagationComponent { get; } 13 | IExportComponent ExportComponent { get; } 14 | ITraceConfig TraceConfig { get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Internal/IRandomGenerator.cs: -------------------------------------------------------------------------------- 1 |  2 | 3 | using System; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Internal 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IRandomGenerator 9 | { 10 | void NextBytes(byte[] bytes); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Propagation/IBinaryFormat.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Trace; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Trace.Propagation 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface IBinaryFormat 10 | { 11 | ISpanContext FromByteArray(byte[] bytes); 12 | byte[] ToByteArray(ISpanContext spanContext); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Propagation/IGetter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Propagation 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IGetter 9 | { 10 | string Get(C carrier, string key); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Propagation/IPropagationComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Steeltoe.Management.Census.Trace.Propagation 4 | { 5 | [Obsolete("Use OpenCensus project packages")] 6 | public interface IPropagationComponent 7 | { 8 | IBinaryFormat BinaryFormat { get; } 9 | ITextFormat TextFormat { get; } 10 | } 11 | } -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Propagation/ISetter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Propagation 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface ISetter 9 | { 10 | void Put(C carrier, string key, string value); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Api/Trace/Propagation/ITextFormat.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Trace; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Trace.Propagation 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public interface ITextFormat 10 | { 11 | IList Fields { get; } 12 | void Inject(ISpanContext spanContext, C carrier, ISetter setter); 13 | ISpanContext Extract(C carrier, IGetter getter); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Common/ZeroTimeClock.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Common 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | internal sealed class ZeroTimeClock : IClock 9 | { 10 | public static readonly ZeroTimeClock INSTANCE = new ZeroTimeClock(); 11 | private static readonly ITimestamp ZERO_TIMESTAMP = Timestamp.Create(0, 0); 12 | 13 | public ITimestamp Now 14 | { 15 | get 16 | { 17 | return ZERO_TIMESTAMP; 18 | } 19 | } 20 | 21 | public long NowNanos 22 | { 23 | get 24 | { 25 | return 0; 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Internal/NoopScope.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Common; 2 | using Steeltoe.Management.Census.Trace; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | 7 | namespace Steeltoe.Management.Census.Internal 8 | { 9 | [Obsolete("Use OpenCensus project packages")] 10 | public sealed class NoopScope : IScope 11 | { 12 | public static readonly IScope INSTANCE = new NoopScope(); 13 | 14 | public static IScope Instance 15 | { 16 | get 17 | { 18 | return INSTANCE; 19 | } 20 | } 21 | 22 | private NoopScope() { } 23 | 24 | public void Dispose() 25 | { 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Internal/SimpleEventQueue.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Internal 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public class SimpleEventQueue : IEventQueue 9 | { 10 | public void Enqueue(IEventQueueEntry entry) 11 | { 12 | entry.Process(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Internal/TimestampConverter.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Common; 2 | using System; 3 | 4 | namespace Steeltoe.Management.Census.Internal 5 | { 6 | [Obsolete("Use OpenCensus project packages")] 7 | internal class TimestampConverter : ITimestampConverter 8 | { 9 | private readonly ITimestamp timestamp; 10 | private readonly long nanoTime; 11 | 12 | // Returns a WallTimeConverter initialized to now. 13 | public static ITimestampConverter Now(IClock clock) 14 | { 15 | return new TimestampConverter(clock.Now, clock.NowNanos); 16 | } 17 | 18 | 19 | public ITimestamp ConvertNanoTime(long nanoTime) 20 | { 21 | return timestamp.AddNanos(nanoTime - this.nanoTime); 22 | } 23 | 24 | private TimestampConverter(ITimestamp timestamp, long nanoTime) 25 | { 26 | this.timestamp = timestamp; 27 | this.nanoTime = nanoTime; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/Aggregation.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Stats.Aggregations; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Stats 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public abstract class Aggregation : IAggregation 10 | { 11 | public abstract M Match(Func p0, Func p1, Func p2, Func p3, Func p4, Func p5); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/AggregationData.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Stats.Aggregations; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Stats 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public abstract class AggregationData : IAggregationData 10 | { 11 | public abstract M Match( 12 | Func p0, 13 | Func p1, 14 | Func p2, 15 | Func p3, 16 | Func p4, 17 | Func p5, 18 | Func p6, 19 | Func defaultFunction); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/Measure.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Stats.Measures; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Stats 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public abstract class Measure : IMeasure 10 | { 11 | internal const int NAME_MAX_LENGTH = 255; 12 | public abstract string Name { get; } 13 | public abstract string Description { get; } 14 | public abstract string Unit { get; } 15 | public abstract M Match(Func p0, Func p1, Func defaultFunction); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/MeasureMapBase.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Stats.Measures; 2 | using Steeltoe.Management.Census.Tags; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | 7 | namespace Steeltoe.Management.Census.Stats 8 | { 9 | [Obsolete("Use OpenCensus project packages")] 10 | public abstract class MeasureMapBase : IMeasureMap 11 | { 12 | 13 | public abstract IMeasureMap Put(IMeasureDouble measure, double value); 14 | 15 | 16 | public abstract IMeasureMap Put(IMeasureLong measure, long value); 17 | 18 | 19 | public abstract void Record(); 20 | 21 | 22 | public abstract void Record(ITagContext tags); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/Measurement.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Steeltoe.Management.Census.Stats.Measurements; 5 | 6 | namespace Steeltoe.Management.Census.Stats 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public abstract class Measurement : IMeasurement 10 | { 11 | public abstract IMeasure Measure { get; } 12 | 13 | public abstract M Match(Func p0, Func p1, Func defaultFunction); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/MutableAggregation.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | internal abstract class MutableAggregation 9 | { 10 | 11 | protected MutableAggregation() { } 12 | 13 | // Tolerance for double comparison. 14 | private const double TOLERANCE = 1e-6; 15 | 16 | internal abstract void Add(double value); 17 | 18 | internal abstract void Combine(MutableAggregation other, double fraction); 19 | 20 | internal abstract T Match( Func p0, Func p1, Func p2, Func p3, Func p4); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/NoopMeasureMap.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Stats.Measures; 2 | using Steeltoe.Management.Census.Tags; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | 7 | namespace Steeltoe.Management.Census.Stats 8 | { 9 | [Obsolete("Use OpenCensus project packages")] 10 | internal sealed class NoopMeasureMap : MeasureMapBase 11 | { 12 | internal static readonly NoopMeasureMap INSTANCE = new NoopMeasureMap(); 13 | 14 | public override IMeasureMap Put(IMeasureDouble measure, double value) 15 | { 16 | return this; 17 | } 18 | 19 | public override IMeasureMap Put(IMeasureLong measure, long value) 20 | { 21 | return this; 22 | } 23 | 24 | public override void Record() { } 25 | 26 | public override void Record(ITagContext tags) 27 | { 28 | if (tags == null) 29 | { 30 | throw new ArgumentNullException(nameof(tags)); 31 | } 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/NoopStats.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | internal sealed class NoopStats 9 | { 10 | private NoopStats() { } 11 | 12 | 13 | internal static IStatsComponent NewNoopStatsComponent() 14 | { 15 | return new NoopStatsComponent(); 16 | } 17 | 18 | 19 | internal static IStatsRecorder NoopStatsRecorder 20 | { 21 | get 22 | { 23 | return Census.Stats.NoopStatsRecorder.INSTANCE; 24 | } 25 | } 26 | 27 | internal static IMeasureMap NoopMeasureMap 28 | { 29 | get 30 | { 31 | return Census.Stats.NoopMeasureMap.INSTANCE; 32 | } 33 | } 34 | internal static IViewManager NewNoopViewManager() 35 | { 36 | return new NoopViewManager(); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/NoopStatsComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | internal sealed class NoopStatsComponent : StatsComponentBase 9 | { 10 | private readonly IViewManager viewManager = NoopStats.NewNoopViewManager(); 11 | //private volatile bool isRead; 12 | 13 | public override IViewManager ViewManager 14 | { 15 | get 16 | { 17 | return viewManager; 18 | } 19 | } 20 | 21 | public override IStatsRecorder StatsRecorder 22 | { 23 | get 24 | { 25 | return NoopStats.NoopStatsRecorder; 26 | } 27 | } 28 | 29 | public override StatsCollectionState State 30 | { 31 | get 32 | { 33 | //isRead = true; 34 | return StatsCollectionState.DISABLED; 35 | } 36 | set 37 | { 38 | 39 | } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/NoopStatsRecorder.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | internal sealed class NoopStatsRecorder : StatsRecorderBase 9 | { 10 | internal static readonly IStatsRecorder INSTANCE = new NoopStatsRecorder(); 11 | 12 | public override IMeasureMap NewMeasureMap() 13 | { 14 | return NoopStats.NoopMeasureMap; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/StatsComponentBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public abstract class StatsComponentBase : IStatsComponent 9 | { 10 | public abstract IViewManager ViewManager { get; } 11 | public abstract IStatsRecorder StatsRecorder { get; } 12 | public abstract StatsCollectionState State { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/StatsRecorder.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public sealed class StatsRecorder : StatsRecorderBase 9 | { 10 | private StatsManager statsManager; 11 | 12 | internal StatsRecorder(StatsManager statsManager) 13 | { 14 | if (statsManager == null) 15 | { 16 | throw new ArgumentNullException(nameof(statsManager)); 17 | } 18 | this.statsManager = statsManager; 19 | } 20 | 21 | public override IMeasureMap NewMeasureMap() 22 | { 23 | return MeasureMap.Create(statsManager); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/StatsRecorderBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public abstract class StatsRecorderBase : IStatsRecorder 9 | { 10 | public abstract IMeasureMap NewMeasureMap(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Stats/ViewManagerBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Stats 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public abstract class ViewManagerBase : IViewManager 9 | { 10 | public abstract ISet AllExportedViews { get; } 11 | 12 | public abstract IViewData GetView(IViewName view); 13 | public abstract void RegisterView(IView view); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Tags/NoopTagContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Tags 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public sealed class NoopTagContext : TagContextBase 9 | { 10 | internal static readonly ITagContext INSTANCE = new NoopTagContext(); 11 | public override IEnumerator GetEnumerator() 12 | { 13 | return new List().GetEnumerator(); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Tags/NoopTagContextBinarySerializer.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Tags.Propagation; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Tags 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public class NoopTagContextBinarySerializer : TagContextBinarySerializerBase 10 | { 11 | internal static readonly ITagContextBinarySerializer INSTANCE = new NoopTagContextBinarySerializer(); 12 | static readonly byte[] EMPTY_BYTE_ARRAY = { }; 13 | public override byte[] ToByteArray(ITagContext tags) 14 | { 15 | if (tags == null) 16 | { 17 | throw new ArgumentNullException(nameof(tags)); 18 | } 19 | return EMPTY_BYTE_ARRAY; 20 | } 21 | 22 | public override ITagContext FromByteArray(byte[] bytes) 23 | { 24 | if (bytes == null) 25 | { 26 | throw new ArgumentNullException(nameof(bytes)); 27 | } 28 | return NoopTags.NoopTagContext; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Tags/NoopTagPropagationComponent.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Tags.Propagation; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Tags 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public class NoopTagPropagationComponent : TagPropagationComponentBase 10 | { 11 | internal static readonly ITagPropagationComponent INSTANCE = new NoopTagPropagationComponent(); 12 | 13 | public override ITagContextBinarySerializer BinarySerializer 14 | { 15 | get 16 | { 17 | return NoopTags.NoopTagContextBinarySerializer; 18 | } 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Tags/NoopTagsComponent.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Tags.Propagation; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Tags 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public sealed class NoopTagsComponent : TagsComponentBase 10 | { 11 | //private volatile bool isRead; 12 | 13 | 14 | public override ITagger Tagger 15 | { 16 | get 17 | { 18 | return NoopTags.NoopTagger; 19 | } 20 | } 21 | 22 | 23 | public override ITagPropagationComponent TagPropagationComponent 24 | { 25 | get 26 | { 27 | return NoopTags.NoopTagPropagationComponent; 28 | } 29 | } 30 | 31 | 32 | public override TaggingState State 33 | { 34 | get 35 | { 36 | //isRead = true; 37 | return TaggingState.DISABLED; 38 | } 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Tags/Propagation/TagContextBinarySerializerBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Tags.Propagation 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public abstract class TagContextBinarySerializerBase : ITagContextBinarySerializer 9 | { 10 | public abstract ITagContext FromByteArray(byte[] bytes); 11 | public abstract byte[] ToByteArray(ITagContext tags); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Tags/Propagation/TagContextDeserializationException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Tags.Propagation 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public sealed class TagContextDeserializationException : Exception 9 | { 10 | public TagContextDeserializationException(String message) 11 | : base(message) 12 | { 13 | 14 | } 15 | public TagContextDeserializationException(String message, Exception cause) 16 | : base(message, cause) 17 | { 18 | 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Tags/Propagation/TagContextSerializationException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Tags.Propagation 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public sealed class TagContextSerializationException : Exception 9 | { 10 | public TagContextSerializationException(String message) 11 | : base(message) 12 | { 13 | 14 | } 15 | public TagContextSerializationException(String message, Exception cause) 16 | : base(message, cause) 17 | { 18 | 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Tags/Propagation/TagPropagationComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Tags.Propagation 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public sealed class TagPropagationComponent : TagPropagationComponentBase 9 | { 10 | private readonly ITagContextBinarySerializer tagContextBinarySerializer; 11 | 12 | public TagPropagationComponent(CurrentTaggingState state) 13 | { 14 | tagContextBinarySerializer = new TagContextBinarySerializer(state); 15 | } 16 | 17 | public override ITagContextBinarySerializer BinarySerializer 18 | { 19 | get { return tagContextBinarySerializer; } 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Tags/Propagation/TagPropagationComponentBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Tags.Propagation 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public abstract class TagPropagationComponentBase : ITagPropagationComponent 9 | { 10 | protected TagPropagationComponentBase() { } 11 | public abstract ITagContextBinarySerializer BinarySerializer { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Tags/TagContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.Collections.ObjectModel; 5 | using System.Linq; 6 | 7 | namespace Steeltoe.Management.Census.Tags 8 | { 9 | [Obsolete("Use OpenCensus project packages")] 10 | public sealed class TagContext : TagContextBase 11 | { 12 | public static readonly ITagContext EMPTY = new TagContext(new Dictionary()); 13 | public IDictionary Tags { get; } 14 | public TagContext(IDictionary tags) 15 | { 16 | this.Tags = new ReadOnlyDictionary(new Dictionary(tags)); 17 | } 18 | 19 | public override IEnumerator GetEnumerator() 20 | { 21 | var result = Tags.Select((kvp) => Tag.Create(kvp.Key, kvp.Value)); 22 | return result.ToList().GetEnumerator(); 23 | } 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Tags/TagContextBuilderBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Steeltoe.Management.Census.Common; 5 | 6 | namespace Steeltoe.Management.Census.Tags 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public abstract class TagContextBuilderBase : ITagContextBuilder 10 | { 11 | public abstract ITagContext Build(); 12 | public abstract IScope BuildScoped(); 13 | public abstract ITagContextBuilder Put(ITagKey key, ITagValue value); 14 | public abstract ITagContextBuilder Remove(ITagKey key); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Tags/TaggerBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Steeltoe.Management.Census.Common; 5 | 6 | namespace Steeltoe.Management.Census.Tags 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public abstract class TaggerBase : ITagger 10 | { 11 | public abstract ITagContext Empty { get; } 12 | public abstract ITagContext CurrentTagContext { get; } 13 | public abstract ITagContextBuilder EmptyBuilder { get; } 14 | public abstract ITagContextBuilder CurrentBuilder { get; } 15 | public abstract ITagContextBuilder ToBuilder(ITagContext tags); 16 | public abstract IScope WithTagContext(ITagContext tags); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Tags/TagsComponentBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Steeltoe.Management.Census.Tags.Propagation; 5 | 6 | namespace Steeltoe.Management.Census.Tags 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public abstract class TagsComponentBase : ITagsComponent 10 | { 11 | public abstract ITagger Tagger { get; } 12 | public abstract ITagPropagationComponent TagPropagationComponent { get; } 13 | public abstract TaggingState State { get; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/CanonicalCode.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public enum CanonicalCode 9 | { 10 | OK = 0, 11 | CANCELLED = 1, 12 | UNKNOWN = 2, 13 | INVALID_ARGUMENT = 3, 14 | DEADLINE_EXCEEDED = 4, 15 | NOT_FOUND = 5, 16 | ALREADY_EXISTS = 6, 17 | PERMISSION_DENIED = 7, 18 | RESOURCE_EXHAUSTED = 8, 19 | FAILED_PRECONDITION = 9, 20 | ABORTED = 10, 21 | OUT_OF_RANGE = 11, 22 | UNIMPLEMENTED = 12, 23 | INTERNAL = 13, 24 | UNAVAILABLE = 14, 25 | DATA_LOSS = 15, 26 | UNAUTHENTICATED = 16 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Config/NoopTraceConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Config 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public class NoopTraceConfig : TraceConfigBase 9 | { 10 | public override ITraceParams ActiveTraceParams 11 | { 12 | get { return TraceParams.DEFAULT; } 13 | } 14 | 15 | public override void UpdateActiveTraceParams(ITraceParams traceParams) 16 | { 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Config/TraceConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Config 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public sealed class TraceConfig : TraceConfigBase 9 | { 10 | public TraceConfig() 11 | { 12 | _activeTraceParams = TraceParams.DEFAULT; 13 | } 14 | 15 | private ITraceParams _activeTraceParams; 16 | public override ITraceParams ActiveTraceParams 17 | { 18 | get 19 | { 20 | return _activeTraceParams; 21 | } 22 | } 23 | public override void UpdateActiveTraceParams(ITraceParams traceParams) 24 | { 25 | _activeTraceParams = traceParams; 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Config/TraceConfigBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Config 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public abstract class TraceConfigBase : ITraceConfig 9 | { 10 | private static readonly NoopTraceConfig NOOP_TRACE_CONFIG = new NoopTraceConfig(); 11 | public static ITraceConfig NoopTraceConfig 12 | { 13 | get 14 | { 15 | return NOOP_TRACE_CONFIG; 16 | } 17 | } 18 | 19 | public abstract ITraceParams ActiveTraceParams { get; } 20 | public abstract void UpdateActiveTraceParams(ITraceParams traceParams); 21 | 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/EventWithNanoTime.cs: -------------------------------------------------------------------------------- 1 |  2 | 3 | using Steeltoe.Management.Census.Internal; 4 | using Steeltoe.Management.Census.Trace.Export; 5 | using System; 6 | 7 | namespace Steeltoe.Management.Census.Trace 8 | { 9 | [Obsolete("Use OpenCensus project packages")] 10 | internal class EventWithNanoTime 11 | { 12 | private readonly long nanoTime; 13 | private readonly T @event; 14 | 15 | public EventWithNanoTime(long nanoTime, T @event) { 16 | this.nanoTime = nanoTime; 17 | this.@event = @event; 18 | } 19 | 20 | internal ITimedEvent ToSpanDataTimedEvent(ITimestampConverter timestampConverter) 21 | { 22 | return TimedEvent.Create(timestampConverter.ConvertNanoTime(nanoTime), @event); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Export/ExportComponentBase.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Common; 2 | using Steeltoe.Management.Census.Internal; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | 7 | namespace Steeltoe.Management.Census.Trace.Export 8 | { 9 | [Obsolete("Use OpenCensus project packages")] 10 | public abstract class ExportComponentBase : IExportComponent 11 | { 12 | public static IExportComponent NewNoopExportComponent 13 | { 14 | get 15 | { 16 | return new NoopExportComponent(); 17 | } 18 | } 19 | public abstract ISpanExporter SpanExporter { get; } 20 | 21 | public abstract IRunningSpanStore RunningSpanStore { get; } 22 | 23 | public abstract ISampledSpanStore SampledSpanStore { get; } 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Export/NoopExportComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | internal sealed class NoopExportComponent : IExportComponent 9 | { 10 | private readonly ISampledSpanStore noopSampledSpanStore = Export.SampledSpanStoreBase.NewNoopSampledSpanStore; 11 | 12 | public ISpanExporter SpanExporter 13 | { 14 | get 15 | { 16 | return Export.SpanExporter.NoopSpanExporter; 17 | } 18 | } 19 | 20 | public IRunningSpanStore RunningSpanStore 21 | { 22 | get 23 | { 24 | return Export.RunningSpanStoreBase.NoopRunningSpanStore; 25 | } 26 | } 27 | 28 | public ISampledSpanStore SampledSpanStore 29 | { 30 | get 31 | { 32 | return noopSampledSpanStore; 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Export/NoopSpanExporter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | internal sealed class NoopSpanExporter : ISpanExporter 9 | { 10 | public void AddSpan(ISpan span) 11 | { 12 | } 13 | 14 | public void Dispose() 15 | { 16 | } 17 | 18 | public void RegisterHandler(string name, IHandler handler) 19 | { 20 | } 21 | 22 | public void UnregisterHandler(string name) 23 | { 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Export/RunningSpanStoreBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Export 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public abstract class RunningSpanStoreBase : IRunningSpanStore 9 | { 10 | private static readonly IRunningSpanStore NOOP_RUNNING_SPAN_STORE = new NoopRunningSpanStore(); 11 | 12 | internal static IRunningSpanStore NoopRunningSpanStore 13 | { 14 | get 15 | { 16 | return NOOP_RUNNING_SPAN_STORE; 17 | } 18 | } 19 | protected RunningSpanStoreBase() { } 20 | 21 | public abstract IRunningSpanStoreSummary Summary { get; } 22 | public abstract IList GetRunningSpans(IRunningSpanStoreFilter filter); 23 | public abstract void OnEnd(ISpan span); 24 | public abstract void OnStart(ISpan span); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Export/SpanExporterBase.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Common; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using System.Threading; 6 | 7 | namespace Steeltoe.Management.Census.Trace.Export 8 | { 9 | [Obsolete("Use OpenCensus project packages")] 10 | public abstract class SpanExporterBase : ISpanExporter 11 | { 12 | private static readonly ISpanExporter NOOP_SPAN_EXPORTER = new NoopSpanExporter(); 13 | public static ISpanExporter NoopSpanExporter 14 | { 15 | get 16 | { 17 | return NOOP_SPAN_EXPORTER; 18 | } 19 | } 20 | 21 | public abstract void AddSpan(ISpan span); 22 | public abstract void Dispose(); 23 | public abstract void RegisterHandler(string name, IHandler handler); 24 | public abstract void UnregisterHandler(string name); 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Export/SpanExtensions.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Trace; 2 | using Steeltoe.Management.Census.Trace.Export; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | 7 | namespace Steeltoe.Management.Census.Trace.Export 8 | { 9 | [Obsolete("Use OpenCensus project packages")] 10 | internal static class SpanExtensions 11 | { 12 | 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Internal/RandomGenerator.cs: -------------------------------------------------------------------------------- 1 |  2 | using System; 3 | 4 | namespace Steeltoe.Management.Census.Trace.Internal 5 | { 6 | [Obsolete("Use OpenCensus project packages")] 7 | internal class RandomGenerator : IRandomGenerator 8 | { 9 | private Random _random; 10 | internal RandomGenerator() 11 | { 12 | _random = new Random(); 13 | } 14 | 15 | internal RandomGenerator(int seed) 16 | { 17 | _random = new Random(seed); 18 | } 19 | 20 | public void NextBytes(byte[] bytes) 21 | { 22 | _random.NextBytes(bytes); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/LinkType.cs: -------------------------------------------------------------------------------- 1 |  2 | 3 | using System; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public enum LinkType 9 | { 10 | CHILD_LINKED_SPAN, 11 | PARENT_LINKED_SPAN 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/MessageEventType.cs: -------------------------------------------------------------------------------- 1 |  2 | 3 | using System; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public enum MessageEventType 9 | { 10 | SENT, 11 | RECEIVED 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/NoopTracer.cs: -------------------------------------------------------------------------------- 1 |  2 | 3 | using System; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public sealed class NoopTracer : TracerBase, ITracer 9 | { 10 | public override ISpanBuilder SpanBuilderWithExplicitParent(string spanName, ISpan parent) 11 | { 12 | return NoopSpanBuilder.CreateWithParent(spanName, parent); 13 | } 14 | 15 | 16 | public override ISpanBuilder SpanBuilderWithRemoteParent(string spanName, ISpanContext remoteParentSpanContext) 17 | { 18 | return NoopSpanBuilder.CreateWithRemoteParent(spanName, remoteParentSpanContext); 19 | } 20 | 21 | internal NoopTracer() { } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Propagation/BinaryFormatBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Steeltoe.Management.Census.Trace; 5 | 6 | namespace Steeltoe.Management.Census.Trace.Propagation 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public abstract class BinaryFormatBase : IBinaryFormat 10 | { 11 | internal static readonly NoopBinaryFormat NOOP_BINARY_FORMAT = new NoopBinaryFormat(); 12 | internal static IBinaryFormat NoopBinaryFormat 13 | { 14 | get 15 | { 16 | return NOOP_BINARY_FORMAT; 17 | } 18 | } 19 | 20 | public abstract ISpanContext FromByteArray(byte[] bytes); 21 | 22 | public abstract byte[] ToByteArray(ISpanContext spanContext); 23 | 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Propagation/NoopBinaryFormat.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Steeltoe.Management.Census.Trace; 5 | 6 | namespace Steeltoe.Management.Census.Trace.Propagation 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | internal class NoopBinaryFormat : IBinaryFormat 10 | { 11 | public ISpanContext FromByteArray(byte[] bytes) 12 | { 13 | if (bytes == null) 14 | { 15 | throw new ArgumentNullException(nameof(bytes)); 16 | } 17 | return SpanContext.INVALID; 18 | } 19 | 20 | public byte[] ToByteArray(ISpanContext spanContext) 21 | { 22 | if (spanContext == null) 23 | { 24 | throw new ArgumentNullException(nameof(spanContext)); 25 | } 26 | return new byte[0]; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Propagation/NoopPropagationComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Propagation 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | internal class NoopPropagationComponent : IPropagationComponent 9 | { 10 | public IBinaryFormat BinaryFormat 11 | { 12 | get 13 | { 14 | return Propagation.BinaryFormatBase.NoopBinaryFormat; 15 | } 16 | } 17 | 18 | public ITextFormat TextFormat 19 | { 20 | get 21 | { 22 | return Propagation.TextFormatBase.NoopTextFormat; 23 | } 24 | } 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Propagation/PropagationComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Propagation 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public sealed class PropagationComponent : PropagationComponentBase 9 | { 10 | private readonly BinaryFormat binaryFormat = new BinaryFormat(); 11 | private readonly B3Format b3Format = new B3Format(); 12 | 13 | public override IBinaryFormat BinaryFormat 14 | { 15 | get 16 | { 17 | return binaryFormat; 18 | } 19 | } 20 | 21 | public override ITextFormat TextFormat 22 | { 23 | get 24 | { 25 | return b3Format; 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Propagation/PropagationComponentBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Propagation 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public abstract class PropagationComponentBase : IPropagationComponent 9 | { 10 | private static readonly IPropagationComponent NOOP_PROPAGATION_COMPONENT = new NoopPropagationComponent(); 11 | public static IPropagationComponent NoopPropagationComponent 12 | { 13 | get 14 | { 15 | return NOOP_PROPAGATION_COMPONENT; 16 | } 17 | } 18 | 19 | public abstract IBinaryFormat BinaryFormat { get; } 20 | public abstract ITextFormat TextFormat { get; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Propagation/SpanContextParseException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Propagation 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public class SpanContextParseException : Exception 9 | { 10 | public SpanContextParseException(string message) 11 | : base(message) 12 | { 13 | } 14 | public SpanContextParseException(string message, Exception cause) 15 | : base(message, cause) 16 | { 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Propagation/TextFormatBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using Steeltoe.Management.Census.Trace; 5 | 6 | namespace Steeltoe.Management.Census.Trace.Propagation 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public abstract class TextFormatBase : ITextFormat 10 | { 11 | private static readonly NoopTextFormat NOOP_TEXT_FORMAT = new NoopTextFormat(); 12 | 13 | internal static ITextFormat NoopTextFormat 14 | { 15 | get 16 | { 17 | return NOOP_TEXT_FORMAT; 18 | } 19 | } 20 | public abstract IList Fields { get; } 21 | 22 | public abstract ISpanContext Extract(C carrier, IGetter getter); 23 | 24 | public abstract void Inject(ISpanContext spanContext, C carrier, ISetter setter); 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Sampler/AlwaysSampleSampler.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Sampler 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | internal class AlwaysSampleSampler : ISampler 9 | { 10 | internal AlwaysSampleSampler() { } 11 | 12 | public string Description 13 | { 14 | get 15 | { 16 | return ToString(); 17 | } 18 | } 19 | 20 | public bool ShouldSample(ISpanContext parentContext, bool hasRemoteParent, ITraceId traceId, ISpanId spanId, string name, IList parentLinks) 21 | { 22 | return true; 23 | } 24 | public override string ToString() 25 | { 26 | return "AlwaysSampleSampler"; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Sampler/NeverSampleSampler.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Sampler 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | internal sealed class NeverSampleSampler : ISampler 9 | { 10 | internal NeverSampleSampler() { } 11 | 12 | public string Description 13 | { 14 | get 15 | { 16 | return ToString(); 17 | } 18 | } 19 | 20 | public bool ShouldSample(ISpanContext parentContext, bool hasRemoteParent, ITraceId traceId, ISpanId spanId, string name, IList parentLinks) 21 | { 22 | return false; 23 | } 24 | public override string ToString() 25 | { 26 | return "NeverSampleSampler"; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Sampler/Samplers.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Sampler 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public sealed class Samplers 9 | { 10 | private static readonly ISampler ALWAYS_SAMPLE = new AlwaysSampleSampler(); 11 | private static readonly ISampler NEVER_SAMPLE = new NeverSampleSampler(); 12 | 13 | public static ISampler AlwaysSample 14 | { 15 | get 16 | { 17 | return ALWAYS_SAMPLE; 18 | } 19 | } 20 | public static ISampler NeverSample 21 | { 22 | get 23 | { 24 | return NEVER_SAMPLE; 25 | } 26 | } 27 | public static ISampler GetProbabilitySampler(double probability) 28 | { 29 | return ProbabilitySampler.Create(probability); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/SpanBuilderOptions.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Common; 2 | using Steeltoe.Management.Census.Trace.Config; 3 | using Steeltoe.Management.Census.Trace.Internal; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Text; 7 | 8 | namespace Steeltoe.Management.Census.Trace 9 | { 10 | [Obsolete("Use OpenCensus project packages")] 11 | internal class SpanBuilderOptions 12 | { 13 | internal IRandomGenerator RandomHandler { get; } 14 | internal IStartEndHandler StartEndHandler { get; } 15 | internal IClock Clock { get; } 16 | internal ITraceConfig TraceConfig { get; } 17 | 18 | internal SpanBuilderOptions(IRandomGenerator randomGenerator, IStartEndHandler startEndHandler, IClock clock, ITraceConfig traceConfig ) 19 | { 20 | RandomHandler = randomGenerator; 21 | StartEndHandler = startEndHandler; 22 | Clock = clock; 23 | TraceConfig = traceConfig; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/SpanOptions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | [Flags] 9 | public enum SpanOptions 10 | { 11 | NONE = 0x0, 12 | RECORD_EVENTS = 0x1 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/TraceComponentBase.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Common; 2 | using Steeltoe.Management.Census.Trace.Config; 3 | using Steeltoe.Management.Census.Trace.Export; 4 | using Steeltoe.Management.Census.Trace.Propagation; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Text; 8 | 9 | namespace Steeltoe.Management.Census.Trace 10 | { 11 | [Obsolete("Use OpenCensus project packages")] 12 | public abstract class TraceComponentBase : ITraceComponent 13 | { 14 | internal static ITraceComponent NewNoopTraceComponent 15 | { 16 | get 17 | { 18 | return new NoopTraceComponent(); 19 | } 20 | } 21 | 22 | public abstract ITracer Tracer { get; } 23 | 24 | public abstract IPropagationComponent PropagationComponent { get; } 25 | 26 | public abstract IClock Clock { get; } 27 | 28 | public abstract IExportComponent ExportComponent { get; } 29 | 30 | public abstract ITraceConfig TraceConfig { get; } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/TraceEvents.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Trace 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | internal class TraceEvents 10 | { 11 | private int totalRecordedEvents = 0; 12 | private readonly EvictingQueue events; 13 | 14 | public EvictingQueue Events 15 | { 16 | get 17 | { 18 | return events; 19 | } 20 | } 21 | public int NumberOfDroppedEvents 22 | { 23 | get { return totalRecordedEvents - events.Count; } 24 | } 25 | 26 | public TraceEvents(int maxNumEvents) 27 | { 28 | events = new EvictingQueue(maxNumEvents); 29 | } 30 | 31 | internal void AddEvent(T @event) { 32 | totalRecordedEvents++; 33 | events.Add(@event); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/TraceOptionsBuilder.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public class TraceOptionsBuilder 9 | { 10 | private byte options; 11 | 12 | internal TraceOptionsBuilder() 13 | : this(TraceOptions.DEFAULT_OPTIONS) 14 | { 15 | } 16 | 17 | internal TraceOptionsBuilder(byte options) 18 | { 19 | this.options = options; 20 | } 21 | 22 | public TraceOptionsBuilder SetIsSampled(bool isSampled) 23 | { 24 | if (isSampled) 25 | { 26 | options = (byte)(options | TraceOptions.IS_SAMPLED); 27 | } 28 | else 29 | { 30 | options = (byte)(options & ~TraceOptions.IS_SAMPLED); 31 | } 32 | return this; 33 | } 34 | 35 | public TraceOptions Build() 36 | { 37 | return new TraceOptions(options); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Impl/Trace/Unsafe/IAsyncLocalContextListener.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Trace.Unsafe 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IAsyncLocalContextListener 9 | { 10 | void ContextChanged(ISpan oldSpan, ISpan newSapn, bool threadContextSwitch); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Runtime.CompilerServices; 16 | 17 | [assembly: InternalsVisibleTo("Steeltoe.Management.OpenCensus.Test")] 18 | [assembly: InternalsVisibleTo("Steeltoe.Management.TracingBase.Test")] 19 | [assembly: InternalsVisibleTo("Steeltoe.Management.TracingCore.Test")] 20 | [assembly: InternalsVisibleTo("Steeltoe.Management.ExporterCore.Test")] 21 | [assembly: InternalsVisibleTo("Steeltoe.Management.ExporterBase.Test")] 22 | [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] 23 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Utils/CanonicalCodeExtensions.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Trace; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Steeltoe.Management.Census.Utils 7 | { 8 | [Obsolete("Use OpenCensus project packages")] 9 | public static class CanonicalCodeExtensions 10 | { 11 | public static Status ToStatus(this CanonicalCode code) 12 | { 13 | return new Status(code); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Utils/DefaultEventQueue.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Internal; 2 | using Steeltoe.Management.Census.Trace; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | 7 | namespace Steeltoe.Management.Census.Utils 8 | { 9 | [Obsolete("Use OpenCensus project packages")] 10 | public class DefaultEventQueue : IEventQueue 11 | { 12 | public void Enqueue(IEventQueueEntry entry) 13 | { 14 | throw new NotImplementedException(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Utils/DoubleUtil.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Utils 6 | { 7 | internal static class DoubleUtil 8 | { 9 | [Obsolete("Use OpenCensus project packages")] 10 | public static long ToInt64(double arg) 11 | { 12 | 13 | if (Double.IsPositiveInfinity(arg)) 14 | { 15 | return 0x7ff0000000000000L; 16 | } 17 | if (Double.IsNegativeInfinity(arg)) 18 | { 19 | unchecked 20 | { 21 | return (long)0xfff0000000000000L; 22 | } 23 | } 24 | if (Double.IsNaN(arg)) 25 | { 26 | return 0x7ff8000000000000L; 27 | } 28 | if (arg == Double.MaxValue) 29 | { 30 | return Int64.MaxValue; 31 | } 32 | if (arg == Double.MinValue) 33 | { 34 | return Int64.MinValue; 35 | } 36 | return Convert.ToInt64(arg); 37 | 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Utils/IElement.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Utils 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | public interface IElement where T: IElement 9 | { 10 | T Next { get; set; } 11 | T Previous { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensus/Utils/StringUtil.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Steeltoe.Management.Census.Utils 6 | { 7 | [Obsolete("Use OpenCensus project packages")] 8 | internal static class StringUtil 9 | { 10 | public static bool IsPrintableString(String str) 11 | { 12 | for (int i = 0; i < str.Length; i++) 13 | { 14 | if (!IsPrintableChar(str[i])) 15 | { 16 | return false; 17 | } 18 | } 19 | return true; 20 | } 21 | 22 | private static bool IsPrintableChar(char ch) 23 | { 24 | return ch >= ' ' && ch <= '~'; 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensusBase/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Runtime.CompilerServices; 16 | 17 | [assembly: InternalsVisibleTo("Steeltoe.Management.TracingBase.Test")] 18 | [assembly: InternalsVisibleTo("Steeltoe.Management.TracingCore.Test")] 19 | [assembly: InternalsVisibleTo("Steeltoe.Management.ExporterCore.Test")] 20 | [assembly: InternalsVisibleTo("Steeltoe.Management.ExporterBase.Test")] 21 | [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] 22 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensusBase/Stats/IStats.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using OpenCensus.Stats; 16 | 17 | namespace Steeltoe.Management.Census.Stats 18 | { 19 | public interface IStats 20 | { 21 | IStatsRecorder StatsRecorder { get; } 22 | 23 | IViewManager ViewManager { get; } 24 | 25 | StatsCollectionState State { get; set; } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensusBase/Tags/ITags.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using OpenCensus.Tags; 16 | using OpenCensus.Tags.Propagation; 17 | 18 | namespace Steeltoe.Management.Census.Tags 19 | { 20 | public interface ITags 21 | { 22 | ITagger Tagger { get; } 23 | 24 | ITagPropagationComponent TagPropagationComponent { get; } 25 | 26 | TaggingState State { get; } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensusBase/Trace/ITracing.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using OpenCensus.Trace; 16 | using OpenCensus.Trace.Config; 17 | using OpenCensus.Trace.Export; 18 | using OpenCensus.Trace.Propagation; 19 | 20 | namespace Steeltoe.Management.Census.Trace 21 | { 22 | public interface ITracing 23 | { 24 | ITracer Tracer { get; } 25 | 26 | IPropagationComponent PropagationComponent { get; } 27 | 28 | IExportComponent ExportComponent { get; } 29 | 30 | ITraceConfig TraceConfig { get; } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.OpenCensusBase/Trace/Propagation/B3Constants.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Census.Trace.Propagation 16 | { 17 | public static class B3Constants 18 | { 19 | public const string XB3TraceId = "X-B3-TraceId"; 20 | public const string XB3SpanId = "X-B3-SpanId"; 21 | public const string XB3ParentSpanId = "X-B3-ParentSpanId"; 22 | public const string XB3Sampled = "X-B3-Sampled"; 23 | public const string XB3Flags = "X-B3-Flags"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Steeltoe.Management.TracingBase/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Runtime.CompilerServices; 16 | 17 | [assembly: InternalsVisibleTo("Steeltoe.Management.TracingBase.Test")] -------------------------------------------------------------------------------- /src/Steeltoe.Management.TracingCore/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Runtime.CompilerServices; 16 | 17 | [assembly: InternalsVisibleTo("Steeltoe.Management.TracingCore.Test")] -------------------------------------------------------------------------------- /targetframework.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | $(NuGetPackageRoot)microsoft.targetingpack.netframework.v4.6.1/1.0.1/lib/net461/ 4 | https://dotnet.myget.org/F/dotnet-core/api/v3/index.json 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/CloudFoundry/git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | git.build.user.email=dtillman@pivotal.io 4 | git.build.host=DESKTOP-K6I8LTH 5 | git.dirty=true 6 | git.remote.origin.url=https\://github.com/spring-projects/spring-boot.git 7 | git.closest.tag.name=v2.0.0.M2 8 | git.commit.id.describe-short=v1.5.4.RELEASE-dirty 9 | git.commit.user.email=buildmaster@springframework.org 10 | git.commit.time=2017-06-08T06\:47\:02-0600 11 | git.commit.message.full=Release version 1.5.4.RELEASE 12 | git.build.version=1.5.4.RELEASE 13 | git.commit.message.short=Release version 1.5.4.RELEASE 14 | git.commit.id.abbrev=924aabd 15 | git.branch=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 16 | git.build.user.name=Dave Tillman 17 | git.closest.tag.commit.count=10772 18 | git.commit.id.describe=v1.5.4.RELEASE-dirty 19 | git.commit.id=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 20 | git.tags=v1.5.4.RELEASE 21 | git.build.time=2017-07-12T12\:40\:39-0600 22 | git.commit.user.name=Spring Buildmaster -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/Health/HealthData.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Health.Test 16 | { 17 | internal class HealthData 18 | { 19 | public string StringProperty { get; set; } = "Testdata"; 20 | 21 | public int IntProperty { get; set; } = 100; 22 | 23 | public bool BoolProperty { get; set; } = true; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/Health/MockContributors/DownContributor.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Steeltoe.Common.HealthChecks; 16 | 17 | namespace Steeltoe.Management.Endpoint.Health.Test 18 | { 19 | public class DownContributor : IHealthContributor 20 | { 21 | public string Id { get; } = "Down"; 22 | 23 | public HealthCheckResult Health() 24 | { 25 | return new HealthCheckResult() 26 | { 27 | Status = HealthStatus.DOWN 28 | }; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/Health/MockContributors/UnknownContributor.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Steeltoe.Common.HealthChecks; 16 | 17 | namespace Steeltoe.Management.Endpoint.Health.Test 18 | { 19 | public class UnknownContributor : IHealthContributor 20 | { 21 | public string Id { get; } = "Unknown"; 22 | 23 | public HealthCheckResult Health() 24 | { 25 | return new HealthCheckResult() 26 | { 27 | Status = HealthStatus.UNKNOWN 28 | }; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/Health/MockContributors/UpContributor.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Steeltoe.Common.HealthChecks; 16 | 17 | namespace Steeltoe.Management.Endpoint.Health.Test 18 | { 19 | public class UpContributor : IHealthContributor 20 | { 21 | public string Id { get; } = "Up"; 22 | 23 | public HealthCheckResult Health() 24 | { 25 | return new HealthCheckResult() 26 | { 27 | Status = HealthStatus.UP 28 | }; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/Hypermedia/git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | git.build.user.email=dtillman@pivotal.io 4 | git.build.host=DESKTOP-K6I8LTH 5 | git.dirty=true 6 | git.remote.origin.url=https\://github.com/spring-projects/spring-boot.git 7 | git.closest.tag.name=v2.0.0.M2 8 | git.commit.id.describe-short=v1.5.4.RELEASE-dirty 9 | git.commit.user.email=buildmaster@springframework.org 10 | git.commit.time=2017-06-08T06\:47\:02-0600 11 | git.commit.message.full=Release version 1.5.4.RELEASE 12 | git.build.version=1.5.4.RELEASE 13 | git.commit.message.short=Release version 1.5.4.RELEASE 14 | git.commit.id.abbrev=924aabd 15 | git.branch=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 16 | git.build.user.name=Dave Tillman 17 | git.closest.tag.commit.count=10772 18 | git.commit.id.describe=v1.5.4.RELEASE-dirty 19 | git.commit.id=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 20 | git.tags=v1.5.4.RELEASE 21 | git.build.time=2017-07-12T12\:40\:39-0600 22 | git.commit.user.name=Spring Buildmaster -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/Info/empty.git.properties: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/Info/garbage.git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | foobar.build.user.email=dtillman@pivotal.io -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/Info/git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | git.build.user.email=dtillman@pivotal.io 4 | git.build.host=DESKTOP-K6I8LTH 5 | git.dirty=true 6 | git.remote.origin.url=https\://github.com/spring-projects/spring-boot.git 7 | git.closest.tag.name=v2.0.0.M2 8 | git.commit.id.describe-short=v1.5.4.RELEASE-dirty 9 | git.commit.user.email=buildmaster@springframework.org 10 | git.commit.time=2017-06-08T06\:47\:02-0600 11 | git.commit.message.full=Release version 1.5.4.RELEASE 12 | git.build.version=1.5.4.RELEASE 13 | git.commit.message.short=Release version 1.5.4.RELEASE 14 | git.commit.id.abbrev=924aabd 15 | git.branch=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 16 | git.build.user.name=Dave Tillman 17 | git.closest.tag.commit.count=10772 18 | git.commit.id.describe=v1.5.4.RELEASE-dirty 19 | git.commit.id=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 20 | git.tags=v1.5.4.RELEASE 21 | git.build.time=2017-07-12T12\:40\:39-0600 22 | git.commit.user.name=Spring Buildmaster -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/Mappings/TestRouteDetails.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Collections.Generic; 16 | 17 | namespace Steeltoe.Management.Endpoint.Mappings.Test 18 | { 19 | public class TestRouteDetails : IRouteDetails 20 | { 21 | public IList HttpMethods { get; set; } 22 | 23 | public string RouteTemplate { get; set; } 24 | 25 | public IList Produces { get; set; } 26 | 27 | public IList Consumes { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/TestEndpoint.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Test 16 | { 17 | internal class TestEndpoint : AbstractEndpoint 18 | { 19 | public TestEndpoint(IEndpointOptions opts) 20 | : base(opts) 21 | { 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/empty.git.properties: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/garbage.git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | foobar.build.user.email=dtillman@pivotal.io -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | git.build.user.email=dtillman@pivotal.io 4 | git.build.host=DESKTOP-K6I8LTH 5 | git.dirty=true 6 | git.remote.origin.url=https\://github.com/spring-projects/spring-boot.git 7 | git.closest.tag.name=v2.0.0.M2 8 | git.commit.id.describe-short=v1.5.4.RELEASE-dirty 9 | git.commit.user.email=buildmaster@springframework.org 10 | git.commit.time=2017-06-08T06\:47\:02-0600 11 | git.commit.message.full=Release version 1.5.4.RELEASE 12 | git.build.version=1.5.4.RELEASE 13 | git.commit.message.short=Release version 1.5.4.RELEASE 14 | git.commit.id.abbrev=924aabd 15 | git.branch=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 16 | git.build.user.name=Dave Tillman 17 | git.closest.tag.commit.count=10772 18 | git.commit.id.describe=v1.5.4.RELEASE-dirty 19 | git.commit.id=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 20 | git.tags=v1.5.4.RELEASE 21 | git.build.time=2017-07-12T12\:40\:39-0600 22 | git.commit.user.name=Spring Buildmaster -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointBase.Test/xunit.runner.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxParallelThreads": 1, 3 | "parallelizeTestCollections": false 4 | } -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointCore.Test/Health/TestContributor.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Steeltoe.Common.HealthChecks; 16 | 17 | namespace Steeltoe.Management.Endpoint.Health.Test 18 | { 19 | internal class TestContributor : IHealthContributor 20 | { 21 | public string Id { get; } 22 | 23 | public HealthCheckResult Health() 24 | { 25 | return new HealthCheckResult(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointCore.Test/Info/TestInfoContributor.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.Endpoint.Info.Test 16 | { 17 | internal class TestInfoContributor : IInfoContributor 18 | { 19 | public void Contribute(IInfoBuilder builder) 20 | { 21 | return; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointCore.Test/Info/empty.git.properties: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointCore.Test/Info/garbage.git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | foobar.build.user.email=dtillman@pivotal.io -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointCore.Test/Info/git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | git.build.user.email=dtillman@pivotal.io 4 | git.build.host=DESKTOP-K6I8LTH 5 | git.dirty=true 6 | git.remote.origin.url=https\://github.com/spring-projects/spring-boot.git 7 | git.closest.tag.name=v2.0.0.M2 8 | git.commit.id.describe-short=v1.5.4.RELEASE-dirty 9 | git.commit.user.email=buildmaster@springframework.org 10 | git.commit.time=2017-06-08T06\:47\:02-0600 11 | git.commit.message.full=Release version 1.5.4.RELEASE 12 | git.build.version=1.5.4.RELEASE 13 | git.commit.message.short=Release version 1.5.4.RELEASE 14 | git.commit.id.abbrev=924aabd 15 | git.branch=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 16 | git.build.user.name=Dave Tillman 17 | git.closest.tag.commit.count=10772 18 | git.commit.id.describe=v1.5.4.RELEASE-dirty 19 | git.commit.id=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 20 | git.tags=v1.5.4.RELEASE 21 | git.build.time=2017-07-12T12\:40\:39-0600 22 | git.commit.user.name=Spring Buildmaster -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointCore.Test/Mappings/HomeController.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Microsoft.AspNetCore.Mvc; 16 | 17 | namespace Steeltoe.Management.EndpointCore.Mappings.Test 18 | { 19 | public class HomeController : Controller 20 | { 21 | [HttpGet] 22 | public Person Index() 23 | { 24 | return new Person(); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointCore.Test/Mappings/Person.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | namespace Steeltoe.Management.EndpointCore.Mappings.Test 16 | { 17 | public class Person 18 | { 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointCore.Test/Trace/MyIdentity.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Security.Principal; 16 | 17 | namespace Steeltoe.Management.Endpoint.Trace.Test 18 | { 19 | internal class MyIdentity : IIdentity 20 | { 21 | public string Name { get; } = "MyTestName"; 22 | 23 | public string AuthenticationType { get; } = "MyTestAuthType"; 24 | 25 | public bool IsAuthenticated { get; } = true; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointCore.Test/Trace/SessionFeature.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Microsoft.AspNetCore.Http; 16 | using Microsoft.AspNetCore.Http.Features; 17 | 18 | namespace Steeltoe.Management.Endpoint.Trace.Test 19 | { 20 | internal class SessionFeature : ISessionFeature 21 | { 22 | public ISession Session { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointCore.Test/empty.git.properties: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointCore.Test/garbage.git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | foobar.build.user.email=dtillman@pivotal.io -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointCore.Test/git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | git.build.user.email=dtillman@pivotal.io 4 | git.build.host=DESKTOP-K6I8LTH 5 | git.dirty=true 6 | git.remote.origin.url=https\://github.com/spring-projects/spring-boot.git 7 | git.closest.tag.name=v2.0.0.M2 8 | git.commit.id.describe-short=v1.5.4.RELEASE-dirty 9 | git.commit.user.email=buildmaster@springframework.org 10 | git.commit.time=2017-06-08T06\:47\:02-0600 11 | git.commit.message.full=Release version 1.5.4.RELEASE 12 | git.build.version=1.5.4.RELEASE 13 | git.commit.message.short=Release version 1.5.4.RELEASE 14 | git.commit.id.abbrev=924aabd 15 | git.branch=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 16 | git.build.user.name=Dave Tillman 17 | git.closest.tag.commit.count=10772 18 | git.commit.id.describe=v1.5.4.RELEASE-dirty 19 | git.commit.id=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 20 | git.tags=v1.5.4.RELEASE 21 | git.build.time=2017-07-12T12\:40\:39-0600 22 | git.commit.user.name=Spring Buildmaster -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointCore.Test/xunit.runner.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxParallelThreads": 1, 3 | "parallelizeTestCollections": false 4 | } -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointOwin.Test/Security/SecureStartup.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using Microsoft.Extensions.Configuration; 16 | using Owin; 17 | 18 | namespace Steeltoe.Management.EndpointOwin.Security.Test 19 | { 20 | public class SecureStartup : Startup 21 | { 22 | public override void Configuration(IAppBuilder app) 23 | { 24 | app.Use(); 25 | base.Configuration(app); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointOwin.Test/Trace/MyIdentity.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2017 the original author or authors. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // https://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | using System.Security.Principal; 16 | 17 | namespace Steeltoe.Management.EndpointOwin.Trace.Test 18 | { 19 | internal class MyIdentity : IIdentity 20 | { 21 | public string Name { get; } = "MyTestName"; 22 | 23 | public string AuthenticationType { get; } = "MyTestAuthType"; 24 | 25 | public bool IsAuthenticated { get; } = true; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointOwin.Test/empty.git.properties: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointOwin.Test/garbage.git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | foobar.build.user.email=dtillman@pivotal.io -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointOwin.Test/git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | git.build.user.email=dtillman@pivotal.io 4 | git.build.host=DESKTOP-K6I8LTH 5 | git.dirty=true 6 | git.remote.origin.url=https\://github.com/spring-projects/spring-boot.git 7 | git.closest.tag.name=v2.0.0.M2 8 | git.commit.id.describe-short=v1.5.4.RELEASE-dirty 9 | git.commit.user.email=buildmaster@springframework.org 10 | git.commit.time=2017-06-08T06\:47\:02-0600 11 | git.commit.message.full=Release version 1.5.4.RELEASE 12 | git.build.version=1.5.4.RELEASE 13 | git.commit.message.short=Release version 1.5.4.RELEASE 14 | git.commit.id.abbrev=924aabd 15 | git.branch=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 16 | git.build.user.name=Dave Tillman 17 | git.closest.tag.commit.count=10772 18 | git.commit.id.describe=v1.5.4.RELEASE-dirty 19 | git.commit.id=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 20 | git.tags=v1.5.4.RELEASE 21 | git.build.time=2017-07-12T12\:40\:39-0600 22 | git.commit.user.name=Spring Buildmaster -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointOwin.Test/xunit.runner.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxParallelThreads": 1, 3 | "parallelizeTestCollections": false 4 | } -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointOwinAutofac.Test/xunit.runner.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxParallelThreads": 1, 3 | "parallelizeTestCollections": false 4 | } -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointWeb.Test/empty.git.properties: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointWeb.Test/garbage.git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | foobar.build.user.email=dtillman@pivotal.io -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointWeb.Test/git.properties: -------------------------------------------------------------------------------- 1 | #Generated by Git-Commit-Id-Plugin 2 | #Wed Jul 12 12:40:39 MDT 2017 3 | git.build.user.email=dtillman@pivotal.io 4 | git.build.host=DESKTOP-K6I8LTH 5 | git.dirty=true 6 | git.remote.origin.url=https\://github.com/spring-projects/spring-boot.git 7 | git.closest.tag.name=v2.0.0.M2 8 | git.commit.id.describe-short=v1.5.4.RELEASE-dirty 9 | git.commit.user.email=buildmaster@springframework.org 10 | git.commit.time=2017-06-08T06\:47\:02-0600 11 | git.commit.message.full=Release version 1.5.4.RELEASE 12 | git.build.version=1.5.4.RELEASE 13 | git.commit.message.short=Release version 1.5.4.RELEASE 14 | git.commit.id.abbrev=924aabd 15 | git.branch=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 16 | git.build.user.name=Dave Tillman 17 | git.closest.tag.commit.count=10772 18 | git.commit.id.describe=v1.5.4.RELEASE-dirty 19 | git.commit.id=924aabdad9eb1da7bfe5b075f9befa2d0b2374e8 20 | git.tags=v1.5.4.RELEASE 21 | git.build.time=2017-07-12T12\:40\:39-0600 22 | git.commit.user.name=Spring Buildmaster -------------------------------------------------------------------------------- /test/Steeltoe.Management.EndpointWeb.Test/xunit.runner.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxParallelThreads": 1, 3 | "parallelizeTestCollections": false 4 | } -------------------------------------------------------------------------------- /test/Steeltoe.Management.ExporterBase.Test/xunit.runner.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxParallelThreads": 1, 3 | "parallelizeTestCollections": false 4 | } -------------------------------------------------------------------------------- /test/Steeltoe.Management.ExporterCore.Test/xunit.runner.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxParallelThreads": 1, 3 | "parallelizeTestCollections": false 4 | } -------------------------------------------------------------------------------- /test/Steeltoe.Management.OpenCensus.Test/Impl/Internal/TimestampConverterTest.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Common; 2 | using Xunit; 3 | using Moq; 4 | 5 | namespace Steeltoe.Management.Census.Internal.Test 6 | { 7 | public class TimestampConverterTest 8 | { 9 | private readonly ITimestamp timestamp = Timestamp.Create(1234, 5678); 10 | 11 | private Mock mockClock; 12 | 13 | public TimestampConverterTest() 14 | { 15 | mockClock = new Mock(); 16 | } 17 | 18 | [Fact] 19 | public void ConvertNanoTime() 20 | { 21 | mockClock.Setup(clock => clock.Now).Returns(timestamp); 22 | mockClock.Setup(clock => clock.NowNanos).Returns(1234L); 23 | 24 | ITimestampConverter timeConverter = TimestampConverter.Now(mockClock.Object); 25 | Assert.Equal(Timestamp.Create(1234, 10678), timeConverter.ConvertNanoTime(6234)); 26 | Assert.Equal(Timestamp.Create(1234, 5444), timeConverter.ConvertNanoTime(1000)); 27 | Assert.Equal(Timestamp.Create(1235, 0), timeConverter.ConvertNanoTime(999995556)); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.OpenCensus.Test/Impl/Stats/StatsTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Xunit; 7 | 8 | namespace Steeltoe.Management.Census.Stats.Test 9 | { 10 | public class StatsTest 11 | { 12 | [Fact(Skip = "Fix statics usage")] 13 | public void GetStatsRecorder() 14 | { 15 | Assert.Equal(typeof(StatsRecorder), Stats.StatsRecorder.GetType()); 16 | } 17 | 18 | [Fact(Skip = "Fix statics usage")] 19 | public void GetViewManager() 20 | { 21 | Assert.Equal(typeof(ViewManager), Stats.ViewManager.GetType()); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.OpenCensus.Test/Impl/Tags/Propagation/TagContextDeserializationExceptionTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Xunit; 7 | 8 | namespace Steeltoe.Management.Census.Tags.Propagation.Test 9 | { 10 | public class TagContextDeserializationExceptionTest 11 | { 12 | [Fact] 13 | public void CreateWithMessage() 14 | { 15 | Assert.Equal("my message", new TagContextDeserializationException("my message").Message); 16 | } 17 | 18 | [Fact] 19 | public void CreateWithMessageAndCause() 20 | { 21 | Exception cause = new Exception(); 22 | TagContextDeserializationException exception = new TagContextDeserializationException("my message", cause); 23 | Assert.Equal("my message", exception.Message); 24 | Assert.Equal(cause, exception.InnerException); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.OpenCensus.Test/Impl/Tags/Propagation/TagContextSerializationExceptionTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Xunit; 7 | 8 | namespace Steeltoe.Management.Census.Tags.Propagation.Test 9 | { 10 | public class TagContextSerializationExceptionTest 11 | { 12 | [Fact] 13 | public void CreateWithMessage() 14 | { 15 | Assert.Equal("my message", new TagContextSerializationException("my message").Message); 16 | } 17 | 18 | [Fact] 19 | public void CreateWithMessageAndCause() 20 | { 21 | Exception cause = new Exception(); 22 | TagContextSerializationException exception = new TagContextSerializationException("my message", cause); 23 | Assert.Equal("my message", exception.Message); 24 | Assert.Equal(cause, exception.InnerException); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.OpenCensus.Test/Impl/Tags/TagsComponentBaseTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Xunit; 7 | 8 | namespace Steeltoe.Management.Census.Tags.Test 9 | { 10 | public class TagsComponentBaseTest 11 | { 12 | private readonly TagsComponent tagsComponent = new TagsComponent(); 13 | 14 | [Fact] 15 | public void DefaultState() 16 | { 17 | Assert.Equal(TaggingState.ENABLED, tagsComponent.State); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.OpenCensus.Test/Impl/Tags/TagsTest.cs: -------------------------------------------------------------------------------- 1 | using Steeltoe.Management.Census.Tags.Propagation; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using Xunit; 8 | 9 | namespace Steeltoe.Management.Census.Tags.Test 10 | { 11 | public class TagsTest 12 | { 13 | public TagsTest() 14 | { 15 | Tags.Initialize(true); 16 | } 17 | 18 | [Fact] 19 | public void GetTagger() 20 | { 21 | Assert.Equal(typeof(Tagger), Tags.Tagger.GetType()); 22 | } 23 | 24 | [Fact] 25 | public void GetTagContextSerializer() 26 | { 27 | Assert.Equal(typeof(TagPropagationComponent), Tags.TagPropagationComponent.GetType()); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.OpenCensus.Test/Impl/Tags/TagsTestUtil.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Steeltoe.Management.Census.Tags.Test 8 | { 9 | internal static class TagsTestUtil 10 | { 11 | public static ICollection TagContextToList(ITagContext tags) 12 | { 13 | return tags.ToList(); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.OpenCensus.Test/Impl/Trace/Export/ExportComponentBaseTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Xunit; 7 | 8 | namespace Steeltoe.Management.Census.Trace.Export.Test 9 | { 10 | public class ExportComponentBaseTest 11 | { 12 | private readonly IExportComponent exportComponent = ExportComponentBase.NewNoopExportComponent; 13 | 14 | [Fact] 15 | public void ImplementationOfSpanExporter() 16 | { 17 | Assert.Equal(SpanExporter.NoopSpanExporter, exportComponent.SpanExporter); 18 | } 19 | 20 | [Fact] 21 | public void ImplementationOfActiveSpans() 22 | { 23 | Assert.Equal(RunningSpanStoreBase.NoopRunningSpanStore, exportComponent.RunningSpanStore); 24 | } 25 | 26 | [Fact] 27 | public void ImplementationOfSampledSpanStore() 28 | { 29 | Assert.Equal(SampledSpanStoreBase.NewNoopSampledSpanStore.GetType(), exportComponent.SampledSpanStore.GetType()); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.OpenCensus.Test/Impl/Trace/Propagation/PropagationComponentBaseTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Xunit; 7 | 8 | namespace Steeltoe.Management.Census.Trace.Propagation.Test 9 | { 10 | public class PropagationComponentBaseTest 11 | { 12 | private readonly IPropagationComponent propagationComponent = PropagationComponentBase.NoopPropagationComponent; 13 | 14 | [Fact] 15 | public void ImplementationOfBinaryFormat() 16 | { 17 | Assert.Equal(BinaryFormat.NoopBinaryFormat, propagationComponent.BinaryFormat); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.OpenCensus.Test/Impl/Trace/Propagation/PropagationComponentTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Xunit; 7 | 8 | namespace Steeltoe.Management.Census.Trace.Propagation.Test 9 | { 10 | public class PropagationComponentTest 11 | { 12 | private readonly PropagationComponent propagationComponent = new PropagationComponent(); 13 | 14 | [Fact] 15 | public void ImplementationOfBinary() 16 | { 17 | Assert.IsType(propagationComponent.BinaryFormat); 18 | } 19 | 20 | [Fact] 21 | public void ImplementationOfB3Format() 22 | { 23 | Assert.IsType(propagationComponent.TextFormat); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.OpenCensus.Test/Impl/Trace/Propagation/SpanContextParseExceptionTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Xunit; 7 | 8 | namespace Steeltoe.Management.Census.Trace.Propagation.Test 9 | { 10 | public class SpanContextParseExceptionTest 11 | { 12 | [Fact] 13 | public void CreateWithMessage() 14 | { 15 | Assert.Equal("my message", new SpanContextParseException("my message").Message); 16 | } 17 | 18 | [Fact] 19 | public void createWithMessageAndCause() 20 | { 21 | Exception cause = new Exception(); 22 | SpanContextParseException parseException = new SpanContextParseException("my message", cause); 23 | Assert.Equal("my message", parseException.Message); 24 | Assert.Equal(cause, parseException.InnerException); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /test/Steeltoe.Management.OpenCensus.Test/xunit.runner.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxParallelThreads": 1, 3 | "parallelizeTestCollections": false 4 | } -------------------------------------------------------------------------------- /test/Steeltoe.Management.TracingBase.Test/xunit.runner.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxParallelThreads": 1, 3 | "parallelizeTestCollections": false 4 | } -------------------------------------------------------------------------------- /test/Steeltoe.Management.TracingCore.Test/xunit.runner.json: -------------------------------------------------------------------------------- 1 | { 2 | "maxParallelThreads": 1, 3 | "parallelizeTestCollections": false 4 | } -------------------------------------------------------------------------------- /versions.props: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SteeltoeOSS/Management/11e6e2222b57e4976fcd468d20193d728254c8bc/versions.props --------------------------------------------------------------------------------