From 25c003a1af4408158f603836a38847787a6a4fb9 Mon Sep 17 00:00:00 2001 From: fabiovandewaeter Date: Wed, 10 Jul 2024 15:21:51 +0200 Subject: [PATCH] add fromSton: to OTSpan class --- ...ifestOpenTelemetryInstrumentation.class.st | 10 +- .../OTAgentInstaller.class.st | 47 ++++--- .../OTContext.class.st | 13 +- .../OTInstrumentation.class.st | 39 +++--- .../OTInstrumentationModule.class.st | 21 ++- .../OTInstrumenter.class.st | 53 ++++---- .../OTSpan.class.st | 126 +++++++++++------- src/OpenTelemetry-Instrumentation/package.st | 2 +- 8 files changed, 166 insertions(+), 145 deletions(-) diff --git a/src/OpenTelemetry-Instrumentation/ManifestOpenTelemetryInstrumentation.class.st b/src/OpenTelemetry-Instrumentation/ManifestOpenTelemetryInstrumentation.class.st index 0ee8642..51eb852 100644 --- a/src/OpenTelemetry-Instrumentation/ManifestOpenTelemetryInstrumentation.class.st +++ b/src/OpenTelemetry-Instrumentation/ManifestOpenTelemetryInstrumentation.class.st @@ -2,14 +2,12 @@ Please describe the package using the class comment of the included manifest class. The manifest class also includes other additional metadata for the package. These meta data are used by other tools such as the SmalllintManifestChecker and the critics Browser " Class { - #name : 'ManifestOpenTelemetryInstrumentation', - #superclass : 'PackageManifest', - #category : 'OpenTelemetry-Instrumentation-Manifest', - #package : 'OpenTelemetry-Instrumentation', - #tag : 'Manifest' + #name : #ManifestOpenTelemetryInstrumentation, + #superclass : #PackageManifest, + #category : 'OpenTelemetry-Instrumentation-Manifest' } -{ #category : 'code-critics' } +{ #category : #'code-critics' } ManifestOpenTelemetryInstrumentation class >> ruleTempsReadBeforeWrittenRuleV1FalsePositive [ diff --git a/src/OpenTelemetry-Instrumentation/OTAgentInstaller.class.st b/src/OpenTelemetry-Instrumentation/OTAgentInstaller.class.st index 89414c1..823200c 100644 --- a/src/OpenTelemetry-Instrumentation/OTAgentInstaller.class.st +++ b/src/OpenTelemetry-Instrumentation/OTAgentInstaller.class.st @@ -8,8 +8,8 @@ These methods allow them to specify contextual information, method parameters, r This ensures that the instrumentation is tailored to the specific needs of the application. " Class { - #name : 'OTAgentInstaller', - #superclass : 'Object', + #name : #OTAgentInstaller, + #superclass : #Object, #instVars : [ 'metalink', 'arguments' @@ -17,11 +17,10 @@ Class { #classInstVars : [ 'permission' ], - #category : 'OpenTelemetry-Instrumentation', - #package : 'OpenTelemetry-Instrumentation' + #category : 'OpenTelemetry-Instrumentation' } -{ #category : 'class initialization' } +{ #category : #'class initialization' } OTAgentInstaller class >> askPermission [ "command line and GUI" @@ -29,7 +28,7 @@ OTAgentInstaller class >> askPermission [ ^ true ] -{ #category : 'class initialization' } +{ #category : #'class initialization' } OTAgentInstaller class >> denyPermission [