File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
internal/languages/dotnet/frameworks/dotnet-clean-architecture Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ const InfrastructureDataDatabaseContextFactoryCSFile = "/Infrastructure/Data/Dat
83
83
// extensions
84
84
const InfrastructureExtensionsPath = "/Infrastructure/Extensions"
85
85
const InfrastructureExtensionsServicesCollectionExtensionsCSFile = "/Infrastructure/Extensions/ServicesCollectionExtensions.cs.tmpl"
86
+ const InfrastructureExtensionsOpenTelemetryRegistrationCSFile = "/Infrastructure/Extensions/OpenTelemetryRegistration.cs.tmpl"
86
87
87
88
// repositories
88
89
const InfrastructureRepositoriesPath = "/Infrastructure/Repositories"
@@ -554,6 +555,15 @@ func (c *Copier) addInfrastructureRelatedDirectoriesAndFiles(resource *corenode.
554
555
}
555
556
* paths = append (* paths , & targetInfrastructureExtensionsServicesCollectionExtensionsFileName )
556
557
558
+ // copy infrastructure/extensions/OpenTelemetryRegistration.cs
559
+ targetInfrastructureExtensionsOpenTelemetryRegistrationFileName := c .NodeDirectoryName + InfrastructureExtensionsPath + "/" + "OpenTelemetryRegistration.cs"
560
+ _ , err = utils .CopyFile (targetInfrastructureExtensionsOpenTelemetryRegistrationFileName , c .TemplatesRootPath + InfrastructureExtensionsOpenTelemetryRegistrationCSFile )
561
+ if err != nil {
562
+ log .Errorf ("error copying infrastructure extensions open telemetry registration file: %v" , err )
563
+ return err
564
+ }
565
+ * paths = append (* paths , & targetInfrastructureExtensionsOpenTelemetryRegistrationFileName )
566
+
557
567
// copy infrastructure/repositories/ResourcesNameRepository.cs
558
568
targetInfrastructureRepositoriesResourceNameRepositoryFileName := c .NodeDirectoryName + InfrastructureRepositoriesPath + "/" + resource .Name + "Repository.cs"
559
569
_ , err = utils .CopyFile (targetInfrastructureRepositoriesResourceNameRepositoryFileName , c .TemplatesRootPath + InfrastructureRepositoriesResourceNameRepositoryCSFile )
You can’t perform that action at this time.
0 commit comments