Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added jaeger-agent as known sidecar #294

Merged
merged 3 commits into from
Jul 21, 2023
Merged

Conversation

BartNetJS
Copy link
Contributor

@BartNetJS BartNetJS commented Jul 12, 2023

See also #292

This PR allows Jaeger side car support by bridge.

Copy link
Collaborator

@hsubramanianaks hsubramanianaks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me. I would suggest testing this fully before merging and releasing it. Because I feel there might some other places in the code might need tweaks. Thanks @BartNetJS that was fast :) !!

@BartNetJS
Copy link
Contributor Author

Hi @hsubramanianaks, Do you expect me to do something to get it approved by your colleagues?

@hsubramanianaks
Copy link
Collaborator

hsubramanianaks commented Jul 14, 2023

Hi @hsubramanianaks, Do you expect me to do something to get it approved by your colleagues?

@BartNetJS I can generate a VSIX with your fix and you can test it with Jeager sidecars to see if it works ? So that we can confirm it works fully. Please let me know. After this we can ask other code owners to review and give their comments/approval.

@hsubramanianaks
Copy link
Collaborator

Hi @hsubramanianaks, Do you expect me to do something to get it approved by your colleagues?

@BartNetJS I can generate a VSIX with your fix and you can test it with Jeager sidecars to see if it works ? So that we can confirm it works fully. Please let me know. After this we can ask other code owners to review and give their comments/approval.

@BartNetJS here is the VSIX - https://github.com/hsubramanianaks/vscode-bridge-to-kubernetes/releases/tag/jeager-support, please set BRIDGE_ENVIRONMENT='dev' and then install VSIX and run your apps with Jeager to see if it works. Thank you.

@BartNetJS
Copy link
Contributor Author

Hi @hsubramanianaks, Do you expect me to do something to get it approved by your colleagues?

@BartNetJS I can generate a VSIX with your fix and you can test it with Jeager sidecars to see if it works ? So that we can confirm it works fully. Please let me know. After this we can ask other code owners to review and give their comments/approval.

@BartNetJS here is the VSIX - https://github.com/hsubramanianaks/vscode-bridge-to-kubernetes/releases/tag/jeager-support, please set BRIDGE_ENVIRONMENT='dev' and then install VSIX and run your apps with Jeager to see if it works. Thank you.

The vsix gives an error:

17/07/2023 10:41:23 - Microsoft VSIX Installer
17/07/2023 10:41:23 - -------------------------------------------
17/07/2023 10:41:23 - vsixinstaller.exe version:
17/07/2023 10:41:23 - 17.6.2166+g22f8bbf459
17/07/2023 10:41:23 - -------------------------------------------
17/07/2023 10:41:23 - Command line parameters:
17/07/2023 10:41:23 - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\BartVanderAuweraert\Downloads\mindaro-2.0.120230714-pull294.vsix
17/07/2023 10:41:23 - -------------------------------------------
17/07/2023 10:41:23 - Microsoft VSIX Installer
17/07/2023 10:41:23 - -------------------------------------------
17/07/2023 10:41:23 - Initializing Install...
17/07/2023 10:41:23 - Searching for applicable products...
17/07/2023 10:41:24 - System.Reflection.TargetInvocationException: Het doel van een aanroep heeft een uitzondering veroorzaakt. ---> Microsoft.VisualStudio.ExtensionManager.InvalidExtensionManifestException: Element 'Identity' has invalid value for attribute 'Version' ---> System.FormatException: De indeling van de invoertekenreeks is onjuist.
bij System.Version.VersionResult.SetFailure(ParseFailureKind failure, String argument)
bij System.Version.TryParseComponent(String component, String componentName, VersionResult& result, Int32& parsedComponent)
bij System.Version.TryParseVersion(String version, VersionResult& result)
bij System.Version.Parse(String input)
bij System.Version..ctor(String version)
bij Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.<>c.b__76_1(String s)
bij Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.VerifyStringValue[T](String value, ErrorInfo info, Func2 selector, Boolean isRequired, Int32 maxLength, T defaultValue) --- Einde van intern uitzonderingsstackpad --- bij Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.VerifyStringValue[T](String value, ErrorInfo info, Func2 selector, Boolean isRequired, Int32 maxLength, T defaultValue)
bij Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ExtractManifestData(PackageManifest manifest)
bij Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadPackageManifest(XmlReader reader)
bij Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadManifest(Stream manifestStream)
bij Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl.ReadVSIXManifestFromPackage(Stream stream, CultureInfo preferredCulture)
bij Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl..ctor(String path, CultureInfo preferredCulture)
--- Einde van intern uitzonderingsstackpad ---
bij System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
bij System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bij System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
bij System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
bij System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
bij VSIXInstaller.ExtensionEngineFactoryForSku.GetTypeFromEngine[TInterface](SupportedVSSKU sku, String typeName, Object[] constructorArguments)
bij VSIXInstaller.ExtensionService.GetInstallableDataImpl(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData) bij VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData)
bij VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
bij VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
bij VSIXInstaller.App.Initialize(Boolean isRepairSupported)
bij VSIXInstaller.App.Initialize()
bij System.Threading.Tasks.Task`1.InnerInvoke()
bij System.Threading.Tasks.Task.Execute()

If posisble can you give a vscode extension?

@hsubramanianaks
Copy link
Collaborator

Hi @hsubramanianaks, Do you expect me to do something to get it approved by your colleagues?

@BartNetJS I can generate a VSIX with your fix and you can test it with Jeager sidecars to see if it works ? So that we can confirm it works fully. Please let me know. After this we can ask other code owners to review and give their comments/approval.

@BartNetJS here is the VSIX - https://github.com/hsubramanianaks/vscode-bridge-to-kubernetes/releases/tag/jeager-support, please set BRIDGE_ENVIRONMENT='dev' and then install VSIX and run your apps with Jeager to see if it works. Thank you.

The vsix gives an error:

17/07/2023 10:41:23 - Microsoft VSIX Installer

17/07/2023 10:41:23 - -------------------------------------------

17/07/2023 10:41:23 - vsixinstaller.exe version:

17/07/2023 10:41:23 - 17.6.2166+g22f8bbf459

17/07/2023 10:41:23 - -------------------------------------------

17/07/2023 10:41:23 - Command line parameters:

17/07/2023 10:41:23 - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\BartVanderAuweraert\Downloads\mindaro-2.0.120230714-pull294.vsix

17/07/2023 10:41:23 - -------------------------------------------

17/07/2023 10:41:23 - Microsoft VSIX Installer

17/07/2023 10:41:23 - -------------------------------------------

17/07/2023 10:41:23 - Initializing Install...

17/07/2023 10:41:23 - Searching for applicable products...

17/07/2023 10:41:24 - System.Reflection.TargetInvocationException: Het doel van een aanroep heeft een uitzondering veroorzaakt. ---> Microsoft.VisualStudio.ExtensionManager.InvalidExtensionManifestException: Element 'Identity' has invalid value for attribute 'Version' ---> System.FormatException: De indeling van de invoertekenreeks is onjuist.

bij System.Version.VersionResult.SetFailure(ParseFailureKind failure, String argument)

bij System.Version.TryParseComponent(String component, String componentName, VersionResult& result, Int32& parsedComponent)

bij System.Version.TryParseVersion(String version, VersionResult& result)

bij System.Version.Parse(String input)

bij System.Version..ctor(String version)

bij Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.<>c.b__76_1(String s)

bij Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.VerifyStringValue[T](String value, ErrorInfo info, Func`2 selector, Boolean isRequired, Int32 maxLength, T defaultValue)

--- Einde van intern uitzonderingsstackpad ---

bij Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.VerifyStringValue[T](String value, ErrorInfo info, Func`2 selector, Boolean isRequired, Int32 maxLength, T defaultValue)

bij Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ExtractManifestData(PackageManifest manifest)

bij Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadPackageManifest(XmlReader reader)

bij Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadManifest(Stream manifestStream)

bij Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl.ReadVSIXManifestFromPackage(Stream stream, CultureInfo preferredCulture)

bij Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl..ctor(String path, CultureInfo preferredCulture)

--- Einde van intern uitzonderingsstackpad ---

bij System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

bij System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

bij System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)

bij System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)

bij System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)

bij VSIXInstaller.ExtensionEngineFactoryForSku.GetTypeFromEngine[TInterface](SupportedVSSKU sku, String typeName, Object[] constructorArguments)

bij VSIXInstaller.ExtensionService.GetInstallableDataImpl(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)

bij VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)

bij VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)

bij VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)

bij VSIXInstaller.App.Initialize(Boolean isRepairSupported)

bij VSIXInstaller.App.Initialize()

bij System.Threading.Tasks.Task`1.InnerInvoke()

bij System.Threading.Tasks.Task.Execute()

If posisble can you give a vscode extension?

This vsix is for vscode extension not Visual studio. Sorry I should have mentioned this. Please try and let me know. @BartNetJS

@BartNetJS
Copy link
Contributor Author

@hsubramanianaks I got his popups when i try to debug(local tunnel)

image

@hsubramanianaks
Copy link
Collaborator

hsubramanianaks commented Jul 17, 2023

@hsubramanianaks I got his popups when i try to debug(local tunnel)

image

@BartNetJS you need to set BRIDGE_ENVIRONMENT='dev' before launching and using your vscode and vscode extension. It should be available as environment variables.

@BartNetJS
Copy link
Contributor Author

@hsubramanianaks forgot to set it, sorry for that
It is working!

@hsubramanianaks
Copy link
Collaborator

@hsubramanianaks forgot to set it, sorry for that It is working!

@cxznmhdcxz can you do internal round of testing and confirm on the results please?

@cxznmhdcxz
Copy link
Member

Passed on all 3 platforms

@cxznmhdcxz cxznmhdcxz merged commit 73c7d76 into Azure:main Jul 21, 2023
13 checks passed
@BartNetJS BartNetJS deleted the patch-1 branch July 25, 2023 05:11
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants