-
Notifications
You must be signed in to change notification settings - Fork 520
How can I inject dapr.io/config: "tracing" using tye? #296
Comments
Are you talking about adding annotations for deployment using tye? |
Yes, it is. Just adding more like below annotations:
...
dapr.io/config: "tracing"
dapr.io/log-level: "debug" |
cc @rynowak |
@thangchung - thanks for blogging us, I enjoyed the read, and I'm glad you find our project interesting. We haven't done anything to enable this yet. Some ideas:
Example: extensions:
- name: dapr
config: myconfig
log-level: debug This would map to the annotations you defined above when deployed, and could map to This seems like it should just work would all you to have access to all of dapr's config settings in local dev. If you're interested in sending a PR - all the changes would go into DaprExtension. Otherwise, I can add this sometime in the next few days. |
Keeping open because I need to fix something with the local dev part of this. Deployment support is merged. Thanks @thangchung 👍 |
Fixes #296 Adds conditional logic for passing these properties to `daprd`. Corrects logic for dealing with config. Dapr's config annotation in k8s refers to kubernetes resource by name, but that's not possible with local run. In local run `dapr` will expect the `-config` parameter to be a file on disk. So, this change adds logic to look for a file by naming convention and pass that locally instead. Additionally added the ability for an extension to output to the console - this is needed because we want to tell the user if their config file can't be found, and specifically where we looked. I made the decision to log a message and skip if the config file isn't present, because we don't have a way to make settings conditional based on environment yet - it makes sense that someone might need to have a config in production but not in local dev.
Fixes #296 Adds conditional logic for passing these properties to `daprd`. Corrects logic for dealing with config. Dapr's config annotation in k8s refers to kubernetes resource by name, but that's not possible with local run. In local run `dapr` will expect the `-config` parameter to be a file on disk. So, this change adds logic to look for a file by naming convention and pass that locally instead. Additionally added the ability for an extension to output to the console - this is needed because we want to tell the user if their config file can't be found, and specifically where we looked. I made the decision to log a message and skip if the config file isn't present, because we don't have a way to make settings conditional based on environment yet - it makes sense that someone might need to have a config in production but not in local dev.
Fixes dotnet#296 Adds conditional logic for passing these properties to `daprd`. Corrects logic for dealing with config. Dapr's config annotation in k8s refers to kubernetes resource by name, but that's not possible with local run. In local run `dapr` will expect the `-config` parameter to be a file on disk. So, this change adds logic to look for a file by naming convention and pass that locally instead. Additionally added the ability for an extension to output to the console - this is needed because we want to tell the user if their config file can't be found, and specifically where we looked. I made the decision to log a message and skip if the config file isn't present, because we don't have a way to make settings conditional based on environment yet - it makes sense that someone might need to have a config in production but not in local dev.
Currently, I use
tye
to deploy my application to AKS. Everything is fine now. But with Dapr in-place we can do the tracing out of the box. See at https://github.com/dapr/docsSo I have a quick question that how can we inject
dapr.io/config: "tracing"
into the deployment to enable the tracing with Open Telemetry usingtye
?The text was updated successfully, but these errors were encountered: