Fetching Service Name from AppConfig in TracingLive Setup

How would I change this to get the service name from my AppConfig layer?
    const TracingLive = Tracer.layerGlobal.pipe(
      Layer.provide(
        Resource.layer({
          serviceName: env.SERVICE_NAME,
          attributes: {
            environment: "dev",
          },
        }),
      )
    );
Was this page helpful?